I'm looking for a tag which would enable me to stop interpreting in a section, in a template.
So I'm looking for something that is similar to smarty's literal tag.
Thanks
There are two kinds of delimiters: {% ... %} and {{ ... }} . The first one is used to execute statements such as for-loops, the latter outputs the result of an expression.
To start writing Twig code in your HTML, there are only two different syntaxes: {{ }} The "say something" syntax. {% %} The "do something" syntax.
I think you're looking for {% verbatim %}
/ {% endverbatim %}
. In earlier versions these were called {% raw %}
/ {% endraw %}
.
See also Twig Escaping.
In Twig, it is now verbatim, see http://twig.sensiolabs.org/doc/tags/verbatim.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With