Render double curly-brackets inside handlebars par

2019-04-05 03:13发布

问题:

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 }.