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