{% extends 'layout.html.j2' %} {% block content %} {% set action = url_for('update_post', post_id = post.id) if post else url_for('create_post') %}