fix linkcheck issues
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent f77b09d · Browse files · 7 files·+24 added−25 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+24 added−25 removed
- other:+24 added−25 removed
Provenance
- Commit
0669656- Tree
4d2a70d- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
f77b09d
7 files changed+24 added−25 removed
modified:docs/api.rst+1 added-1 removed
112 unmodified lines113 >>> m.b114 u'f\xf6\xf6'115 116 117-.. _Unicode documentation: http://docs.python.org/dev/howto/unicode.html117+.. _Unicode documentation: https://docs.python.org/3/howto/unicode.html118 119 High Level API120 --------------121 802 unmodified linesmodified:docs/extensions.rst+4 added-4 removed
104 unmodified lines105 106 The usage of the `i18n` extension for template designers is covered as part107 :ref:`of the template documentation <i18n-in-templates>`.108 109-.. _gettext: http://docs.python.org/dev/library/gettext109+.. _gettext: https://docs.python.org/3/library/gettext.html110 .. _Babel: http://babel.pocoo.org/111 112 .. _newstyle-gettext:113 108 unmodified lines222 Example Extension223 ~~~~~~~~~~~~~~~~~224 225 The following example implements a `cache` tag for Jinja2 by using the226-`Werkzeug`_ caching contrib module:226+`cachelib`_ library:227 228 .. literalinclude:: cache_extension.py229 :language: python230 231 And here is how you use it in an environment::232 233 from jinja2 import Environment234- from werkzeug.contrib.cache import SimpleCache234+ from cachelib import SimpleCache235 236 env = Environment(extensions=[FragmentCacheExtension])237 env.fragment_cache = SimpleCache()238 7 unmodified lines246 ...247 </div>248 {% endcache %}249 250-.. _Werkzeug: http://werkzeug.pocoo.org/250+.. _cachelib: https://github.com/pallets/cachelib251 252 Extension API253 ~~~~~~~~~~~~~254 87 unmodified linesmodified:docs/faq.rst+3 added-3 removed
24 unmodified lines25 speaking the performance of a template engine doesn't matter much as the26 usual bottleneck in a web application is either the database or the application27 code.28 29-.. _Mako: http://www.makotemplates.org/29+.. _Mako: https://www.makotemplates.org/30 31 How Compatible is Jinja2 with Django?32 -------------------------------------33 110 unmodified lines144 from google.appengine.tools.devappserver2.python import sandbox145 sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']146 147 Credit for this snippet goes to `Thomas Johansson148-<http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_148+<https://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_149 150 Why is there no Python 2.3/2.4/2.5/3.1/3.2 support?151 ---------------------------------------------------152 34 unmodified lines187 templates passing information to the parent template. To avoid this188 issue rename the macro or variable in the parent template to have an189 uncommon prefix.190 191-.. _Jinja 1: http://jinja.pocoo.org/1/191+.. _Jinja 1: https://pypi.org/project/Jinja/modified:docs/integration.rst+3 added-3 removed
74 unmodified lines75 snippet and add it into your `config/environment.py`::76 77 config['pylons.strict_c'] = True78 79-.. _Pylons: http://www.pylonshq.com/79+.. _Pylons: https://pylonshq.com/80 81 TextMate82 --------83 6 unmodified lines90 ---91 92 A syntax plugin for `Vim`_ exists in the Vim-scripts directory as well as the93 `ext` folder at the root of the Jinja2 project. `The script94-<http://www.vim.org/scripts/script.php?script_id=1856>`_ supports Jinja1 and94+<https://www.vim.org/scripts/script.php?script_id=1856>`_ supports Jinja1 and95 Jinja2. Once installed two file types are available `jinja` and `htmljinja`.96 The first one for text based templates, the latter for HTML templates.97 98 Copy the files into your `syntax` folder.99 100 .. _Babel: http://babel.pocoo.org/101-.. _Vim: http://www.vim.org/101+.. _Vim: https://www.vim.org/modified:docs/intro.rst+8 added-8 removed
58 unmodified lines59 As an alternative to steps 4 you can also do ``python setup.py develop``60 which will install the package via `distribute` in development mode. This also61 has the advantage that the C extensions are compiled.62 63-.. _download page: http://pypi.python.org/pypi/Jinja264-.. _distribute: http://pypi.python.org/pypi/distribute 65-.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools66-.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall67-.. _pip: http://pypi.python.org/pypi/pip68-.. _git: http://git-scm.org/63+.. _download page: https://pypi.org/project/Jinja2/64+.. _distribute: https://pypi.org/project/distribute/65+.. _setuptools: https://pypi.org/project/setuptools/66+.. _easy_install: https://setuptools.readthedocs.io/en/latest/easy_install.html67+.. _pip: https://pypi.org/project/pip/68+.. _git: https://git-scm.com/69 70 71 MarkupSafe Dependency72 ~~~~~~~~~~~~~~~~~~~~~1 unmodified line74 As of version 2.7 Jinja2 depends on the `MarkupSafe`_ module. If you75 install Jinja2 via `pip` or `easy_install` it will be installed76 automatically for you.77 78-.. _MarkupSafe: http://pypi.python.org/pypi/MarkupSafe78+.. _MarkupSafe: https://markupsafe.palletsprojects.com/79 80 Basic API Usage81 ---------------82 33 unmodified lines116 in mind, so you will have to adapt the shown code examples to Python 3 syntax117 for yourself.118 119 120-.. _Jinja bug tracker: http://github.com/pallets/jinja/issues120+.. _Jinja bug tracker: https://github.com/pallets/jinja/issuesmodified:jinja2/bccache.py+2 added-3 removed
294 unmodified lines295 the minimal interface required.296 297 Libraries compatible with this class:298 299- - `werkzeug <http://werkzeug.pocoo.org/>`_.contrib.cache300- - `python-memcached <http://www.tummy.com/Community/software/python-memcached/>`_301- - `cmemcache <http://gijsbert.org/cmemcache/>`_299+ - `cachelib <https://github.com/pallets/cachelib>`_300+ - `python-memcached <https://pypi.org/project/python-memcached/>`_301 302 (Unfortunately the django cache interface is not compatible because it303 does not support storing binary data, only unicode. You can however pass304 the underlying cache client to the bytecode cache which is available57 unmodified linesmodified:CHANGES.rst+3 added-3 removed
203 unmodified lines204 205 - Prefix loader was not forwarding the locals properly to206 inner loaders. This is now fixed.207 - Security issue: Changed the default folder for the filesystem cache to be208- user specific and read and write protected on UNIX systems. See `Debian bug209- 734747`_ for more information.208+ user specific and read and write protected on UNIX systems. See209+ `Debian bug 734747`_ for more information.210 211-.. _Debian bug 734747: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747211+.. _Debian bug 734747: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747212 213 Version 2.7.1214 -------------215 (bugfix release, released on August 7th 2013)309 unmodified lines