1 2 3 4 5 6 7
{%macro print(tags)%} <p>Tags: {%for t in tags-%} <a href="/tags/{{t}}.html">{{t}}</a>{{", " if not loop.last else ""}} {%-endfor%} </p> {%endmacro%}