{% macro config_table(data,heading='Setting') %} {% for row in data %} {{ config_row( row.name, row.desc, row.type, row.default, row.highlight) }} {% endfor %}
{{ heading }} Description
{% endmacro %} {% macro config_row( setting, desc, type, default, highlight ) %} {{ setting }}
{{ desc | safe }}
Type: {{ type }} Default: {% if highlight %} {% highlight "js" %} {{ default | safe }} {% endhighlight %} {% else %} {{ default }} {% endif %}
{% endmacro %}