Render double curly-brackets inside handlebars partial

。_饼干妹妹 提交于 2019-12-05 16:00:49

问题


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



来源:https://stackoverflow.com/questions/22249235/render-double-curly-brackets-inside-handlebars-partial

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!