0
votes

I am using handlebars as my javascript template engine. I am using a simple form as template and call it again and again in my twig file of symfony2 framework.

I am using following twig block to escape the curly brackets conflict of handlebars and twig template:

 {% verbatim %} 

But when I use the path() function to route my form it also gets ignored in this block. I am also using few variable above the form so can't use the twig ignoring block below form action.

thanks in advance.

2
show us some code with this problem - Andrzej Piszczek

2 Answers

0
votes

I'd recommend changing the delimiter used in handlebars. Not sure exactly how you do it, but I've had to do this in a similar scenario only using Ractive:

delimiters: [ '[[', ']]' ],

tripleDelimiters: [ '[[[', ']]]' ],