如何使用一个文字{{在一个胡塞尔模板? [英] How does one use a literal {{ in a Mustache template?
本文介绍了如何使用一个文字{{在一个胡塞尔模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在一个Mustache模板中使用文字{{?
How does one use a literal "{{" in a Mustache template?
在旁注中,如果我使用自定义标签,例如<%
和%>
,有没有办法写<%?
On a side note, if I'm using custom tags, like <%
and %>
, is there a way to write "<%"?
理论上,我可以使用不同的标签,但是使用 {{
和}}
编写的代码太多,可以全部更改。
Theoretically, I could use different tags, but I have too much code written using {{
and }}
to change it all.
推荐答案
暂时更改分隔符:
{{=<% %>=}}
{{Look at the curlies!}}
<%={{ }}=%>
这篇关于如何使用一个文字{{在一个胡塞尔模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文