Files
microblog/app/templates/index.html
2023-06-04 01:17:48 +02:00

549 B

{% extends 'base.html' %} {% block content %}

Hi, {{ current_user.username }}!

{% if form %} {{ form.hidden_tag() }}

{{ form.post.label }}
{{ form.post(cols = 32, rows = 4) }}
{% for error in form.post.errors %} [{{ error }}] {% endfor %}

{{ form.submit() }}

{% endif %} {% for post in posts %} {% include "_post.html" %} {% endfor %} {% endblock %}s