0
autoescape를 false로 설정하지 않아도 공백을 표시하지 않지만 색인 페이지의 단락 간격에 대해 Twigg에서 autoescape false를 사용하려고합니다.symfony2 - {{include}}에서 작동하지 않는 나뭇 가지에서 false를 사용합니다.
단락 간격을 표시하기 위해 include에 autoescape false를 사용하는 방법이 있습니까?
는가 작동하지 않습니다 : (간격이 표시되지 않음)
{% for post in posts %}
{% autoescape false %}
{{ include('AcmeDemoBundle:Page:_post.html.twig', { post: post }) }}
{% endautoescape %}
{% endfor %}
나는 쇼 페이지에서 사용하는 경우는 잘 작동합니다 :
<div class="entry-content">
{% autoescape false %}
<p>{{ post.body|truncate(2000) }}</p>
{% endautoescape %}
</div>