forked from orbit-oss/flask
improve grammar, make format consistent, and improve readability
This commit is contained in:
parent
818c42cfea
commit
81e8bbbb7f
1 changed files with 4 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ So here is a full example::
|
||||||
return redirect(url_for('index'))
|
return redirect(url_for('index'))
|
||||||
return render_template('login.html', error=error)
|
return render_template('login.html', error=error)
|
||||||
|
|
||||||
And here the :file:`layout.html` template which does the magic:
|
And here is the :file:`layout.html` template which does the magic:
|
||||||
|
|
||||||
.. sourcecode:: html+jinja
|
.. sourcecode:: html+jinja
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ And here the :file:`layout.html` template which does the magic:
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
|
|
||||||
And here the index.html template:
|
Here is the :file:`index.html` template which inherits from :file:`layout.html`:
|
||||||
|
|
||||||
.. sourcecode:: html+jinja
|
.. sourcecode:: html+jinja
|
||||||
|
|
||||||
|
|
@ -65,7 +65,8 @@ And here the index.html template:
|
||||||
<p>Do you want to <a href="{{ url_for('login') }}">log in?</a>
|
<p>Do you want to <a href="{{ url_for('login') }}">log in?</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
And of course the login template:
|
And here is the :file:`login.html` template which also inherits from
|
||||||
|
:file:`layout.html`:
|
||||||
|
|
||||||
.. sourcecode:: html+jinja
|
.. sourcecode:: html+jinja
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue