{% macro render_post(post) %}
{{ post.content | safe }}
{% if post.template %} {% include post.template %} {% endif %} {% endmacro %} {% macro render_test(post) %}
{% for block in post.content %} {% if block.type == "image" %} {% with src=url_for('content_image_files', filename=block.src) %} {% include "components/image.html" %} {% endwith %} {% elif block.type == "text" %}

{{ block.value }}

{% endif %} {% endfor %}
{% endmacro %}