{% macro author(name, ctime, mtime, thread_id, parent_id) %}

{{ name }} - {{ format_since(ctime) }}{% if ctime != mtime %} (last modified {{ format_since(mtime) }}){% endif %} {% if thread_id is not none %} {# Suffixing a # prevents unnecessary reloads #} thread {% endif %} {% if parent_id is not none %} parent {% endif %}

{% endmacro %} {% macro render_comment_pre(comment, thread_id) %}
{{ author(comment.author, comment.create_time, comment.modify_time, thread_id, comment.parent_id) }}

{{ minimd(comment.text) | safe }}

{% endmacro %} {% macro render_comment_post(comment, thread_id) %} {% for c in comment.children %} {{ render_comment(c, thread_id) }} {% endfor %}
{% endmacro %} {% macro render_comment(comment, thread_id) %} {{ render_comment_pre(comment, thread_id) }} reply {{ render_comment_post(comment, thread_id) }} {% endmacro %} {% macro reply() %} {% if 'user_id' in session %}

{% endif %} {% endmacro %}