{% macro post(post, type) %}

{{ post.title }}
{% if type == "index" %} view {% endif %} {% if logged_in %} edit delete {% endif %}

{% if type != "index" %}
{{ post.html | safe }}
{% endif %}
{% endmacro %} {% macro form(post=false, action) %}
Preview
{% endmacro %}