Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 404
dbkaplun Avatar asked Jun 14 '12 23:06

dbkaplun


1 Answers

Just change the delimiters temporarily:

{{=<% %>=}} {{Look at the curlies!}} <%={{ }}=%> 
like image 195
theK42 Avatar answered Sep 19 '22 05:09

theK42