I have a .twig file with some content that is rendered using backbone via underscore's template engine.
index.twig file
<select name="" id="" class='select-specializations'>
<% _.each(itemList, function(item){%>
<option value="<%= item %>"> <%= item %> </option>
<%})%>
</select>
The problem is that twig doesn't seem to ignore this <% syntax when I autoescape in my template file. Throwing the following error:
A block must start with a tag name in..
And if I use the raw block, underscore doesn't seem to undestand the syntax. Is there a was to resolve this conflict of syntaxes between twig and underscore?
twigtemplate? - Jonathan Lonowski