Render double curly-brackets inside handlebars par

2019-04-05 03:30发布

How do you force handlebars.js to ignore (and not render) templates?

2条回答
Animai°情兽
2楼-- · 2019-04-05 03:51

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.

查看更多
爷的心禁止访问
3楼-- · 2019-04-05 04:10

HTML entity might be a solution if you just wang to display your brackets. Try { and }.

查看更多
登录 后发表回答