【发布时间】:2016-01-05 19:58:24
【问题描述】:
是否可以在空格键中使用逻辑运算符(没有模板助手)?
例如:
{{#if status == '0'}}
Hello world.
{{/if}}
很遗憾,我收到以下错误:
While processing files with templating (for target web.browser):
client/views/test.html:46: Expected identifier, number, string, boolean, null, or a sub expression enclosed in "(", ")"
... {{#if status == '0'}} ...
^
=> Your application has errors. Waiting for file change.
【问题讨论】:
-
也许是这个? *.com/a/16315366/266561
标签: meteor handlebars.js spacebars