{% macro post(post, type) %}

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

{{ post.body | safe }}
{% endmacro %} {% macro form(post=false, action) %}
Preview
{% endmacro %}