1
0
Fork 0
mirror of https://github.com/Luzifer/repo-template.git synced 2024-11-10 08:30:03 +00:00
repo-template/vendor/github.com/flosch/pongo2/template_tests/cycle.tpl
Knut Ahlers a0b3b414c5
Migrate to pongo2 as template engine
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-02-07 22:20:28 +01:00

22 lines
No EOL
913 B
Smarty

{% for item in simple.multiple_item_list %}
'{% cycle "item1" simple.name simple.number %}'
{% endfor %}
{% for item in simple.multiple_item_list %}
'{% cycle "item1" simple.name simple.number as cycleitem %}'
May I present the cycle item again: '{{ cycleitem }}'
{% endfor %}
{% for item in simple.multiple_item_list %}
'{% cycle "item1" simple.name simple.number as cycleitem silent %}'
May I present the cycle item: '{{ cycleitem }}'
{% endfor %}
{% for item in simple.multiple_item_list %}
'{% cycle "item1" simple.name simple.number as cycleitem silent %}'
May I present the cycle item: '{{ cycleitem }}'
{% include "inheritance/cycle_include.tpl" %}
{% endfor %}
'{% cycle "item1" simple.name simple.number as cycleitem %}'
'{% cycle cycleitem %}'
'{% cycle "item1" simple.name simple.number as cycleitem silent %}'
'{{ cycleitem }}'
'{% cycle cycleitem %}'
'{{ cycleitem }}'