How does one use a literal {{ in a Mustache template?

前端 未结 4 726
星月不相逢
星月不相逢 2020-12-07 00:16

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

4条回答
  •  渐次进展
    2020-12-07 00:59

    Just change the delimiters temporarily:

    {{=<% %>=}}
    {{Look at the curlies!}}
    <%={{ }}=%>
    

提交回复
热议问题