Skip to content
Myr

Fix Pocoo documentation links

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

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 16308bf · Browse files · 5 files+8 added−8 removed
This commit

State

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

Diff stats

5 files+8 added−8 removed

  • other:+8 added−8 removed

5 files+8 added−8 removed

modified:docs/tutorial/templates.rst+1 added-1 removed
14 unmodified lines
15the layout of the website in all pages.1617Put the following templates into the `templates` folder:1819.. _Jinja2: http://jinja.pocoo.org/2/documentation/templates19.. _Jinja2: http://jinja.pocoo.org/docs/templates2021layout.html22-----------23
88 unmodified lines
modified:docs/index.rst+3 added-3 removed
19 unmodified lines
20engine and the `Werkzeug`_ WSGI toolkit. These libraries are not documented21here. If you want to dive into their documentation, check out the22following links:2324- `Jinja2 Documentation <http://jinja.pocoo.org/2/documentation/>`_25- `Werkzeug Documentation <http://werkzeug.pocoo.org/documentation/>`_24- `Jinja2 Documentation <http://jinja.pocoo.org/docs>`_25- `Werkzeug Documentation <http://werkzeug.pocoo.org/docs>`_262728.. _Jinja2: http://jinja.pocoo.org/2/28.. _Jinja2: http://jinja.pocoo.org/29.. _Werkzeug: http://werkzeug.pocoo.org/3031.. include:: contents.rst.inc
modified:docs/installation.rst+1 added-1 removed
2 unmodified lines
3Installation4============56Flask depends on some external libraries, like `Werkzeug7<http://werkzeug.pocoo.org/>`_ and `Jinja2 <http://jinja.pocoo.org/2/>`_.7<http://werkzeug.pocoo.org/>`_ and `Jinja2 <http://jinja.pocoo.org/>`_.8Werkzeug is a toolkit for WSGI, the standard Python interface between web9applications and a variety of servers for both development and deployment.10Jinja2 renders templates.11
170 unmodified lines
modified:docs/quickstart.rst+2 added-2 removed
345 unmodified lines
346347Generating HTML from within Python is not fun, and actually pretty348cumbersome because you have to do the HTML escaping on your own to keep349the application secure. Because of that Flask configures the `Jinja2350<http://jinja.pocoo.org/2/>`_ template engine for you automatically.350<http://jinja.pocoo.org/>`_ template engine for you automatically.351352To render a template you can use the :func:`~flask.render_template`353method. All you have to do is provide the name of the template and the354variables you want to pass to the template engine as keyword arguments.
24 unmodified lines
379 /hello.html380381For templates you can use the full power of Jinja2 templates. Head over382to the official `Jinja2 Template Documentation383<http://jinja.pocoo.org/2/documentation/templates>`_ for more information.383<http://jinja.pocoo.org/docs/templates>`_ for more information.384385Here is an example template:386387.. sourcecode:: html+jinja
468 unmodified lines
modified:docs/templating.rst+1 added-1 removed
7 unmodified lines
89This section only gives a very quick introduction into how Jinja210is integrated into Flask. If you want information on the template11engine's syntax itself, head over to the official `Jinja2 Template12Documentation <http://jinja.pocoo.org/2/documentation/templates>`_ for12Documentation <http://jinja.pocoo.org/docs/templates>`_ for13more information.1415Jinja Setup16-----------
206 unmodified lines