How do you force handlebars.js to ignore (and not render) templates?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
It's possible to escape the line with backslash
\{{>partialName}}
It's not mentioned in the documentation, but a look at the source-code documentation revealed this technique.
回答2:
HTML entity might be a solution if you just wang to display your brackets. Try {
and }
.
标签:
handlebars.js