在Spacebars中是否可以使用逻辑运算符(不使用模板助手)?
例如:
{{#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.