Path 是的,你如何用路径块来插值一条路线?
如果我有这样的路线Path 是的,你如何用路径块来插值一条路线?,path,interpolation,yesod,hamlet,Path,Interpolation,Yesod,Hamlet,如果我有这样的路线 /foo/#String FooR GET POST 如何在哈姆雷特文件中插入此路径(例如,发布到?) 以下各项不起作用: <form method=post action=@{FooR} ... > <form method=post action=@{FooR}someString ... > <form method=post action=@{FooR}#someString ... > <form method=post
/foo/#String FooR GET POST
如何在哈姆雷特文件中插入此路径(例如,发布到?)
以下各项不起作用:
<form method=post action=@{FooR} ... >
<form method=post action=@{FooR}someString ... >
<form method=post action=@{FooR}#someString ... >
<form method=post action=@{FooR}#{some_variable} ... >
谢谢大家!
编辑:明白了。它是
<form method=post action=@{FooR some_variable} ... >