在车把内部呈现双层花括号 [英] Render double curly-brackets inside handlebars partial
本文介绍了在车把内部呈现双层花括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何强制handlebars.js忽略(而不是渲染)模板?
How do you force handlebars.js to ignore (and not render) templates?
推荐答案
反斜杠
\{{>partialName}}
在文档中没有提到,但查看源代码文档揭示了这种技术。
It's not mentioned in the documentation, but a look at the source-code documentation revealed this technique.
这篇关于在车把内部呈现双层花括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文