Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
テンプレートに複数のブロックを、それぞれ異なる名前で追加する必要があります。
{% for item from items %} {% block item.name %}sometext{% endblock %} {% endfor %}
しかし、私はエラーが発生します。これどうやってするの ?
の
Twig では動的ブロック名は使用できません。GitHubでそれについての議論がありました。