How can I use break or continue within for loop in Twig template?

前端 未结 5 1657
眼角桃花
眼角桃花 2020-12-01 00:35

I try to use a simple loop, in my real code this loop is more complex, and I need to break this iteration like:

{% for post in posts %}
    {% i         


        
5条回答
提交回复
热议问题