forked from orbit-oss/flask
Fix Pocoo documentation links
This commit is contained in:
parent
16308bf675
commit
20edb3189c
5 changed files with 8 additions and 8 deletions
|
|
@ -21,11 +21,11 @@ engine and the `Werkzeug`_ WSGI toolkit. These libraries are not documented
|
|||
here. If you want to dive into their documentation, check out the
|
||||
following links:
|
||||
|
||||
- `Jinja2 Documentation <http://jinja.pocoo.org/2/documentation/>`_
|
||||
- `Werkzeug Documentation <http://werkzeug.pocoo.org/documentation/>`_
|
||||
- `Jinja2 Documentation <http://jinja.pocoo.org/docs>`_
|
||||
- `Werkzeug Documentation <http://werkzeug.pocoo.org/docs>`_
|
||||
|
||||
|
||||
.. _Jinja2: http://jinja.pocoo.org/2/
|
||||
.. _Jinja2: http://jinja.pocoo.org/
|
||||
.. _Werkzeug: http://werkzeug.pocoo.org/
|
||||
|
||||
.. include:: contents.rst.inc
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ Installation
|
|||
============
|
||||
|
||||
Flask depends on some external libraries, like `Werkzeug
|
||||
<http://werkzeug.pocoo.org/>`_ and `Jinja2 <http://jinja.pocoo.org/2/>`_.
|
||||
<http://werkzeug.pocoo.org/>`_ and `Jinja2 <http://jinja.pocoo.org/>`_.
|
||||
Werkzeug is a toolkit for WSGI, the standard Python interface between web
|
||||
applications and a variety of servers for both development and deployment.
|
||||
Jinja2 renders templates.
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ Rendering Templates
|
|||
Generating HTML from within Python is not fun, and actually pretty
|
||||
cumbersome because you have to do the HTML escaping on your own to keep
|
||||
the application secure. Because of that Flask configures the `Jinja2
|
||||
<http://jinja.pocoo.org/2/>`_ template engine for you automatically.
|
||||
<http://jinja.pocoo.org/>`_ template engine for you automatically.
|
||||
|
||||
To render a template you can use the :func:`~flask.render_template`
|
||||
method. All you have to do is provide the name of the template and the
|
||||
|
|
@ -380,7 +380,7 @@ package it's actually inside your package:
|
|||
|
||||
For templates you can use the full power of Jinja2 templates. Head over
|
||||
to the official `Jinja2 Template Documentation
|
||||
<http://jinja.pocoo.org/2/documentation/templates>`_ for more information.
|
||||
<http://jinja.pocoo.org/docs/templates>`_ for more information.
|
||||
|
||||
Here is an example template:
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ An extension can depend on Jinja2 being present.
|
|||
This section only gives a very quick introduction into how Jinja2
|
||||
is integrated into Flask. If you want information on the template
|
||||
engine's syntax itself, head over to the official `Jinja2 Template
|
||||
Documentation <http://jinja.pocoo.org/2/documentation/templates>`_ for
|
||||
Documentation <http://jinja.pocoo.org/docs/templates>`_ for
|
||||
more information.
|
||||
|
||||
Jinja Setup
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ the layout of the website in all pages.
|
|||
|
||||
Put the following templates into the `templates` folder:
|
||||
|
||||
.. _Jinja2: http://jinja.pocoo.org/2/documentation/templates
|
||||
.. _Jinja2: http://jinja.pocoo.org/docs/templates
|
||||
|
||||
layout.html
|
||||
-----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue