Mit*_*lad 5 interpolation path yesod hamlet
如果我有一条路线,例如
/foo/#String FooR GET POST
Run Code Online (Sandbox Code Playgroud)
如何在 hamlet 文件中插入此路径(例如,要发布到?)
以下不起作用:
<form method=post action=@{FooR} ... >
<form method=post action=@{FooR}someString ... >
<form method=post action=@{FooR}#someString ... >
<form method=post action=@{FooR}#{some_variable} ... >
Run Code Online (Sandbox Code Playgroud)
谢谢!
编辑:明白了。它是
<form method=post action=@{FooR some_variable} ... >
Run Code Online (Sandbox Code Playgroud)