{% for name in head %}{{ name|title }}{% endfor %} {% for row in tbody %} {% for value in row %}{{ value }}{% endfor %} {% endfor %}