I am using twig and handlebar.js with symfony2. I am making handlebar templates in twig file using tag.
But the problem is both use {{ }} curly braces. So the values used for handlebars are mixed with twig. So on page load exception appears.
Is there any way to use both at the same time.
Thank you in advance.
Regards
Use the verbatim
tag.
{% verbatim %}
<ul>
{{#items}}
<li>{{name}}
{{/items}}
</ul>
{% endverbatim %}
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