【发布时间】:2015-01-23 17:38:46
【问题描述】:
在代码中
toWidget [julius|
$(function() {
foo();
bar();
)
|]
我想注释掉对bar 的调用。但是
toWidget [julius|
$(function() {
foo();
/* bar(); */
)
|]
使 C 预处理器出错,而 Haskell 风格的 cmets,即
toWidget [julius|
$(function() {
foo();
{- bar(); -}
)
|]
进入浏览器。
这是一个小例子;我的真实案例跨越了几行,因此需要多行注释样式。
如何注释掉莎士比亚模板中的某些内容,尤其是 julius 模板?
【问题讨论】:
标签: templates comments yesod shakespeare-text yesod-julius