Skip to content
Myr

improve grammar, make format consistent, and improve readability

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Idris Raja · committed by Idris Raja · parent 818c42c · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:docs/patterns/flashing.rst+4 added-3 removed
36 unmodified lines
37 flash('You were successfully logged in')38 return redirect(url_for('index'))39 return render_template('login.html', error=error)4041And here the :file:`layout.html` template which does the magic:41And here is the :file:`layout.html` template which does the magic:4243.. sourcecode:: html+jinja4445 <!doctype html>
8 unmodified lines
54 {% endif %}55 {% endwith %}56 {% block body %}{% endblock %}5758And here the index.html template:58Here is the :file:`index.html` template which inherits from :file:`layout.html`:5960.. sourcecode:: html+jinja6162 {% extends "layout.html" %}
1 unmodified line
64 <h1>Overview</h1>65 <p>Do you want to <a href="{{ url_for('login') }}">log in?</a>66 {% endblock %}6768And of course the login template:68And here is the :file:`login.html` template which also inherits from69:file:`layout.html`:7071.. sourcecode:: html+jinja7273 {% extends "layout.html" %}
75 unmodified lines