{% extends "base.html" %} {% import "macro.html" as macro %} {% block main %} {% if post.parent.is_some() %} {% call macro::feed_item(post.parent.as_ref().unwrap().post) %}
---
{% endif %} {% call macro::feed_item(post.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.post) %} {% endfor %} {% endif %} {% endblock %}