{% extends "layout.html" %} {% from "helpers.html" import input_field, textarea, form %} {% block page_title %}Index Page{% endblock %} {% block body %} {%- for article in articles if article.published %}

{{ article.title|e }}

written by {{ article.user.username|e }} on {{ article.pub_date|dateformat }}

{{ article.body }}
{%- endfor %} {%- call form() %}
Name
{{ input_field('name') }}
E-Mail
{{ input_field('email') }}
URL
{{ input_field('url') }}
Comment
{{ textarea('comment') }}
Captcha
{{ input_field('captcha') }}
{{ input_field(type='submit', value='Submit') }} {{ input_field('cancel', type='submit', value='Cancel') }} {%- endcall %} {% endblock %}