{% extends "base.html" %} {% import "macro.html" as macro %} {% block main %} {% if post.parent.is_some() %} {% call macro::feed_item(post.parent.as_ref().unwrap()) %}
---
{% endif %} {% call macro::feed_item(post) %} {% if post.replies.is_some() && post.replies.as_ref().unwrap().len() > 0 %}
--- replies ---
{% for item in post.replies.as_ref().unwrap() %} {% call macro::feed_item(item) %} {% endfor %} {% endif %} {% endblock %}