Twig with js handles braces

I am using twig and handlebar.js with symfony2. I am making steering patterns in a twig file using a tag.

But the problem is the use of {{}} braces. Thus, the values ​​used for the rudders are mixed with a twig. Thus, a page load exception appears.

Is it possible to use both methods at the same time.

Thanks in advance.

Hi

+5
source share
1 answer

Use the verbatim tag.

 {% verbatim %} <ul> {{#items}} <li>{{name}} {{/items}} </ul> {% endverbatim %} 
+11
source

Source: https://habr.com/ru/post/1201329/


All Articles