{{ var }} {% for item in test_list -%} {{ item }} {% endfor %}