Open polybuildr opened 9 years ago
According to this Stack Overflow question, there’s no built-in way to escape an instance of {{
. If you can’t work around it—for example, by adding a space between the braces in your example—you can change the delimiters temporarily or you can add a “braces” value to your context that will output {{
when you input {{braces}}
.
I'd prefer to use the double braces format for my variables, however, I'd like pystache to ignore certain cases, such as in this legitimate javscript snippet:
What should I be doing here? True, I can just add a space between the
{{
, but surely Pystache supports this in some way?