I need to add mustache templates to a Twig template using symfony2.
Someone has created a ‘verbatim’ template tag for django and I’m looking for a corresponding one for twig that will prevent it from parsing the mustache elements.
Can anyone point me in the right direction please?
Thanks
I think you are looking for the verbatim tag.
UPDATE for AlainTiemblo :
But what if you need to write
{% endverbatim %}verbatim ?You must then resort to the least elegant method (you can’t use verbatim anymore)
If the twig code is big, do this: