{% extends "blog_base.html" %} {% block content %} {# Overwrite the content block from blog_base.html #}
{% if cgi.author or cgi.content or cgi.title %} {# Print an error message if needed #} {# This can be done in the template and not in the script #}

Error, can't publish:
{% if not cgi.content %}Field "Text" is missing or empty.
{% endif %} {% if not cgi.title %}Field "Title" is missing or empty.
{% endif %} {% if not cgi.author %}Field "Author" is missing or empty.
{% endif %}

{% endif %}

Title:

Author:

Text (no html allowed):

{% endblock content %} {# We don't overwrite the block "morecss" here, it will stay empty #}