Answer the question
In order to leave comments, you need to log in
Twig templating engine: How to render text without Twig processing?
Good day!
You need to output a <script type="template/text"></script>
template in the block to create a component:
<script id="layout-property-sheet" type="template/text">
<div class="db-properties-widget">
<h4>Вид</h4>
<div class="db-properties-block">
<h3>Общие</h3>
<div class="db-properties-param-group">
<div class="db-properties-param">
<label>Тип слоя</label>
<select id="wefwe" class="form-control input-sm" style="width:100%">
// Вот этот блок обрабатывается моим JS-шаблонизатором на фронтенде, на него и ругается Twig
<%for(var index in this.fields) {%>
<option></option>
<a href="#"><%this.skills[index]%></a>
<%}%>
</select>
</div>
</div>
</div>
</div>
</script>
<script ...>
{% autoescape false %}
.....
{% endautoescape %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question