mustache / mustache.github.com

The {{official}} website
http://mustache.github.io/
Other
2.32k stars 293 forks source link

How to output raw moustache in a code block? #155

Closed kevquirk closed 1 year ago

kevquirk commented 1 year ago

Hey folks,

I'm hoping get a little help please. I'm using Moustache on a project, and I'm trying to reference some raw moustache within a code block in documentation. However, when the page is rendered, the moustache is processed and the code blocks contain the output, rather than the raw moustache.

In Jekyll, they allow you to wrap liquid in {{ raw }}...{{ endraw }} so that raw liquid syntax can be rendered. Does such a thing exist in Moustache?

Thanks!

jobol commented 1 year ago

You can set the delimiters: {{=<% %>=}} .....MY ESCAPED MUSTACHE... <%={{ }}=%>

kevquirk commented 1 year ago

That worked perfectly. Thanks for the really quick reply. :+1: