messing around with flask tutorial

12345678910111213141516
  1. {% extends 'base.html' %}
  2. {% block header %}
  3. <h1>{% block title %}New Post{% endblock %}</h1>
  4. {% endblock %}
  5. {% block content %}
  6. <form method="post">
  7. <label for="title">Title</label>
  8. <input name="title" id="title" value="{{ request.form['title'] }}" required>
  9. <label for="body">Body</label>
  10. <textarea name="body" id="body">{{ request.form['body'] }}</textarea>
  11. <input type="submit" value="Save">
  12. </form>
  13. {% endblock %}