{% macro hello(name) %} hello, {{ name }} {% endmacro %} {% for name in names %} {{ hello(name) }} {% endfor %}