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
Provenance
- Commit
20edb31- Tree
afad8cc- Author
Daniel Neuhäuser <dasdasich@gmail.com>- Committer
Daniel Neuhäuser <dasdasich@gmail.com>- Parent
16308bf
5 files changed+8 added−8 removed
modified:docs/tutorial/templates.rst+1 added-1 removed
14 unmodified lines15 the layout of the website in all pages.16 17 Put the following templates into the `templates` folder:18 19-.. _Jinja2: http://jinja.pocoo.org/2/documentation/templates19+.. _Jinja2: http://jinja.pocoo.org/docs/templates20 21 layout.html22 -----------23 88 unmodified linesmodified:docs/index.rst+3 added-3 removed
19 unmodified lines20 engine and the `Werkzeug`_ WSGI toolkit. These libraries are not documented21 here. If you want to dive into their documentation, check out the22 following links:23 24-- `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>`_26 27 28-.. _Jinja2: http://jinja.pocoo.org/2/28+.. _Jinja2: http://jinja.pocoo.org/29 .. _Werkzeug: http://werkzeug.pocoo.org/30 31 .. include:: contents.rst.incmodified:docs/installation.rst+1 added-1 removed
2 unmodified lines3 Installation4 ============5 6 Flask 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/>`_.8 Werkzeug is a toolkit for WSGI, the standard Python interface between web9 applications and a variety of servers for both development and deployment.10 Jinja2 renders templates.11 170 unmodified linesmodified:docs/quickstart.rst+2 added-2 removed
345 unmodified lines346 347 Generating HTML from within Python is not fun, and actually pretty348 cumbersome because you have to do the HTML escaping on your own to keep349 the 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.351 352 To render a template you can use the :func:`~flask.render_template`353 method. All you have to do is provide the name of the template and the354 variables you want to pass to the template engine as keyword arguments.24 unmodified lines379 /hello.html380 381 For templates you can use the full power of Jinja2 templates. Head over382 to 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.384 385 Here is an example template:386 387 .. sourcecode:: html+jinja468 unmodified linesmodified:docs/templating.rst+1 added-1 removed
7 unmodified lines8 9 This section only gives a very quick introduction into how Jinja210 is integrated into Flask. If you want information on the template11 engine's syntax itself, head over to the official `Jinja2 Template12-Documentation <http://jinja.pocoo.org/2/documentation/templates>`_ for12+Documentation <http://jinja.pocoo.org/docs/templates>`_ for13 more information.14 15 Jinja Setup16 -----------206 unmodified lines