Skip to content
Myr

Replace old pocoo links everywhere

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

pocco.org -> palletsprojects.com

authored by Grey Li · committed by David Lord · parent d49cfb3 · Browse files · 12 files+13 added−13 removed
This commit

State

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

Diff stats

12 files+13 added−13 removed

  • tests:+1 added−1 removed
  • other:+12 added−12 removed

12 files+13 added−13 removed

modified:docs/tutorial/blog.rst+1 added-1 removed
123 unmodified lines
124special variable available inside `Jinja for loops`_. It's used to125display a line after each post except the last one, to visually separate126them.127128.. _Jinja for loops: http://jinja.pocoo.org/docs/templates/#for128.. _Jinja for loops: https://jinja.palletsprojects.com/templates/#for129130131Create132------
204 unmodified lines
modified:docs/tutorial/templates.rst+1 added-1 removed
29 unmodified lines
30statement like ``if`` and ``for``. Unlike Python, blocks are denoted31by start and end tags rather than indentation since static text within32a block could change indentation.3334.. _Jinja: http://jinja.pocoo.org/docs/templates/34.. _Jinja: https://jinja.palletsprojects.com/templates/35.. _HTML: https://developer.mozilla.org/docs/Web/HTML363738The Base Layout
149 unmodified lines
modified:docs/conf.py+1 added-1 removed
21 unmodified lines
22intersphinx_mapping = {23 "python": ("https://docs.python.org/3/", None),24 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),25 "click": ("https://click.palletsprojects.com/", None),26 "jinja": ("http://jinja.pocoo.org/docs/", None),26 "jinja": ("https://jinja.palletsprojects.com/", None),27 "itsdangerous": ("https://itsdangerous.palletsprojects.com/", None),28 "sqlalchemy": ("https://docs.sqlalchemy.org/", None),29 "wtforms": ("https://wtforms.readthedocs.io/en/stable/", None),30 "blinker": ("https://pythonhosted.org/blinker/", None),
66 unmodified lines
modified:docs/index.rst+1 added-1 removed
18 unmodified lines
1920Flask depends on the `Jinja`_ template engine and the `Werkzeug`_ WSGI21toolkit. The documentation for these libraries can be found at:2223- `Jinja documentation <http://jinja.pocoo.org/docs>`_23- `Jinja documentation <https://jinja.palletsprojects.com/>`_24- `Werkzeug documentation <https://werkzeug.palletsprojects.com/>`_2526.. _Jinja: https://www.palletsprojects.com/p/jinja/27.. _Werkzeug: https://www.palletsprojects.com/p/werkzeug/
66 unmodified lines
modified:docs/quickstart.rst+2 added-2 removed
357 unmodified lines
358359Generating HTML from within Python is not fun, and actually pretty360cumbersome because you have to do the HTML escaping on your own to keep361the application secure. Because of that Flask configures the `Jinja2362<http://jinja.pocoo.org/>`_ template engine for you automatically.362<https://palletsprojects.com/p/jinja/>`_ template engine for you automatically.363364To render a template you can use the :func:`~flask.render_template`365method. All you have to do is provide the name of the template and the366variables you want to pass to the template engine as keyword arguments.
24 unmodified lines
391 /hello.html392393For templates you can use the full power of Jinja2 templates. Head over394to the official `Jinja2 Template Documentation395<http://jinja.pocoo.org/docs/templates/>`_ for more information.395<http://jinja.palletsprojects.com/templates/>`_ for more information.396397Here is an example template:398399.. sourcecode:: html+jinja
501 unmodified lines
modified:docs/templating.rst+1 added-1 removed
9 unmodified lines
1011This section only gives a very quick introduction into how Jinja212is integrated into Flask. If you want information on the template13engine's syntax itself, head over to the official `Jinja2 Template14Documentation <http://jinja.pocoo.org/docs/templates/>`_ for14Documentation <https://jinja.palletsprojects.com/templates/>`_ for15more information.1617Jinja Setup18-----------
218 unmodified lines
modified:examples/javascript/README.rst+1 added-1 removed
13 unmodified lines
1415.. |jQuery.ajax| replace:: ``jQuery.ajax``16.. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/1718.. _Flask docs: http://flask.pocoo.org/docs/patterns/jquery/18.. _Flask docs: https://flask.palletsprojects.com/patterns/jquery/192021Install22-------
27 unmodified lines
modified:examples/javascript/setup.py+1 added-1 removed
7 unmodified lines
89setup(10 name="js_example",11 version="1.0.0",12 url="http://flask.pocoo.org/docs/patterns/jquery/",12 url="https://flask.palletsprojects.com/patterns/jquery/",13 license="BSD",14 maintainer="Pallets team",15 maintainer_email="contact@palletsprojects.com",16 description="Demonstrates making Ajax requests to Flask.",
7 unmodified lines
modified:examples/tutorial/README.rst+1 added-1 removed
1 unmodified line
2======34The basic blog app built in the Flask `tutorial`_.56.. _tutorial: http://flask.pocoo.org/docs/tutorial/6.. _tutorial: https://flask.palletsprojects.com/tutorial/789Install10-------
67 unmodified lines
modified:examples/tutorial/setup.py+1 added-1 removed
7 unmodified lines
89setup(10 name="flaskr",11 version="1.0.0",12 url="http://flask.pocoo.org/docs/tutorial/",12 url="https://flask.palletsprojects.com/tutorial/",13 license="BSD",14 maintainer="Pallets team",15 maintainer_email="contact@palletsprojects.com",16 description="The basic blog app built in the Flask tutorial.",
7 unmodified lines
modified:src/flask/debughelpers.py+1 added-1 removed
162 unmodified lines
163 " The template was looked up from an endpoint that "164 'belongs to the blueprint "%s".' % blueprint165 )166 info.append(" Maybe you did not place a template in the right folder?")167 info.append(" See http://flask.pocoo.org/docs/blueprints/#templates")167 info.append(" See https://flask.palletsprojects.com/blueprints/#templates")168169 app.logger.info("\n".join(info))170171
12 unmodified lines
modified:tests/test_templating.py+1 added-1 removed
424 unmodified lines
425 assert "Error: the template could not be found" in text426 assert (427 "looked up from an endpoint that belongs to " 'the blueprint "frontend"'428 ) in text429 assert "See http://flask.pocoo.org/docs/blueprints/#templates" in text429 assert "See https://flask.palletsprojects.com/blueprints/#templates" in text430431 with app.test_client() as c:432 monkeypatch.setitem(app.config, "EXPLAIN_TEMPLATE_LOADING", True)433 monkeypatch.setattr(
20 unmodified lines