Skip to content
Myr

Merge pull request #3191 from jaydarius/master

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

replace "otherwise" with "or" to complete the "either" statement in templates doc

authored by David Lord · committed by GitHub · parents 1dda032, 42da151 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/tutorial/templates.rst+1 added-1 removed
71 unmodified lines
72 </section>7374:data:`g` is automatically available in templates. Based on if75``g.user`` is set (from ``load_logged_in_user``), either the username76and a log out link are displayed, otherwise links to register and log in76and a log out link are displayed, or links to register and log in77are displayed. :func:`url_for` is also automatically available, and is78used to generate URLs to views instead of writing them out manually.7980After the page title, and before the content, the template loops over
107 unmodified lines