pyramid-jinja2


Namepyramid-jinja2 JSON
Version 2.10.1 PyPI version JSON
download
home_pagehttps://github.com/Pylons/pyramid_jinja2
SummaryJinja2 template bindings for the Pyramid web framework
upload_time2024-02-08 06:08:19
maintainerPylons Project
docs_urlNone
authorRocky Burt
requires_python>=3.7.0
licenseBSD-derived (Repoze)
keywords web wsgi pylons pyramid jinja2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            Jinja2 bindings for Pyramid
===========================

These are bindings for the `Jinja2 templating system <http://jinja.pocoo.org>`_
for the `Pyramid <https://trypyramid.com>`_ web framework.

See https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/ for
documentation or ``index.rst`` in the ``docs`` sub-directory of the source
distribution.

2.10.1 (2023-02-07)
===================

- Rename "master" git branch to "main"

- Add Python 3.11 and 3.12 support.

- Replace usage of private Pyramid APIs.

2.10 (2022-03-27)
=================

- Add ``jinja2.i18n_extension`` configuration setting.
  See https://github.com/Pylons/pyramid_jinja2/pull/165

2.9.2 (2022-03-19)
==================

- Support Jinja2 >= 3.0.

- Only import ``jinja2.pass_context`` if available on Jinja2 >= 3.0, otherwise
  fallback to ``jinja2.contextfilter``.
  See https://github.com/Pylons/pyramid_jinja2/pull/164

2.9.1 (2022-03-12)
==================

**This release has been yanked and is no longer available.**

- Fix package metadata. No changes from 2.9.

2.9 (2022-03-12)
================

**This release has been yanked and is no longer available.**

- Drop Python 3.6 support.

- Add Python 3.9 and 3.10 support.

- Refactor project structure to make wheel distribution smaller.

- Blackify the codebase.

- Use the newer ``@jinja2.pass_context`` in favor of the deprecated
  ``@jinja2.contextfilter``.
  See https://github.com/Pylons/pyramid_jinja2/pull/159

2.8 (2019-01-25)
================

- Drop Python 3.3 support.

- Add Python 3.6 and 3.7 support.

- Support the ``mapping`` argument in the injected ``gettext`` function.
  See https://github.com/Pylons/pyramid_jinja2/pull/143

2.7 (2016-11-15)
================

- Drop Python 2.6 and 3.2 support.

- Add Python 3.5 support.

- #123: Switch to pytest and pip for testing and installation in the
  documentation and scaffold. nose and coverage are still used in the core
  pyramid_jinja2 package [stevepiercy].

- Prefer ``resource_url`` over deprecated ``model_url``. Pyramid has changed
  its vocabulary, so let's reflect the changes. [Mikko Ohtamaa]

- Support a dotted path to a gettext wrapper for the ``jinja2.i18n.gettext``
  setting. [mmerickel]

2.6.2 (2016-01-23)
==================

- Officially drop support for Python 3.2, test under Python 3.5 and pypy3
  [Domen Kozar]

2.6.1 (2016-01-20)
==================

- Don't include .pyc in wheel file [Domen Kozar]

2.6 (2016-01-20)
================

- #116: Update scaffold to be consistent with Pyramid's default scaffolds
  [stevepiercy]

2.5 (2015-04-16)
================

- #106: Allow specifying a custom pyramid_jinja.i18n.GetTextWrapper [dstufft]

2.4 (2015-03-27)
================

- #105: Support ``jinja2.finalize`` configuration setting. [dstufft]

- #94: Fix loading of templates with relative names on Windows [zart]

- Support Python 3.4 [mmerickel]

- Improve scaffold [marioidival]

- #98: Avoid get_current_request where possible [housleyjk]

- #99: Add resource_path filter [javex]

2.3.3 (2014-07-02)
==================

- #91: Fix a recursion error while attempting to include a template with the
  same name as one of the parents that was already loaded. [mmerickel]

2.3.2 (2014-06-13)
==================

- Fix 2.3.1 brownbag release. It had some erroneous didn't-mean-to-push
  changes that are now solved. Brought coverage back up to 100%.

2.3.1 (2014-06-13)
==================

- Improve the template-relative searchpath logic to search more possibilities
  in the include-chain built up from templates including or extending
  other templates. The logic for when the chain was longer than just one
  template including another template was broken.

2.3 (2014-05-30)
================

- Require ``pyramid_jinja2`` to be included even when using
  ``pyramid_jinja2.renderer_factory``. It is now a thin wrapper around the
  default renderer and can be used to share the same settings with another
  file extension. [mmerickel]

Backward Incompatible Changes
-----------------------------

- ``pyramid_jinja2`` **must** be included into the ``Configurator`` in order
  to use ``pyramid_jinja2.renderer_factory`` otherwise you may see the
  exception::

    ValueError: As of pyramid_jinja2 2.3, the use of the
    "pyramid_jinja2.renderer_factory" requires that pyramid_jinja2 be
    configured via config.include("pyramid_jinja2") or the equivalent
    "pyramid.includes" setting.

  The fix is to include ``pyramid_jinja2``::

    config.include("pyramid_jinja2")

2.2 (2014-05-30)
================

- #88: Formalize template loading order and allow all lookups to fallback to
  the search path. A template is now always searched for relative to its
  parent template. If not found, the lookup will fallback to the search path.
  [mmerickel]

- Add ``prepend`` option to ``config.add_jinja2_search_path`` to allow
  prepending of paths to the beginning of the search path if a path should
  override previously defined paths. [mmerickel]

2.1 (2014-05-16)
================

- The 2.0 series started adding the package that invoked
  ``config.add_jinja2_renderer`` to the template search path. This is
  being removed in favor of explicit search paths and will hopefully not
  affect many people as it has only been available for a couple weeks. The
  only automatic search path left is the one added by the default ``.jinja2``
  renderer created when including ``pyramid_jinja2``. [mmerickel]

- Adjust the ``config.include("pyramid_jinja2")`` to add any packages from
  ``jinja2.directories`` **before** the default search path at the base of
  the app. Previously there was no way to override that search path.
  [mmerickel]

2.0.2 (2014-05-06)
==================

- The path of the child template is always considered when inheriting from
  a base template. Therefore when doing ``render("templates/foo.jinja2")``
  and ``foo.jinja2`` has an ``{% extends "base.jinja2" %}``, the template
  will be searched for as ``"templates/base.jinja2"`` on the search path.
  Previously the path of the child template was ignored when doing the
  lookup for the base, causing some very subtle and unrecoverable lookup
  errors when the child template was found relative to the caller instead
  of being found on the search path. [mmerickel]

- This release restores the default search path behaviors from the 1.x series
  that were inadvertently removed in the 2.x. The project's root package is
  added to the search path by default. [mmerickel]

2.0.1 (2014-04-23)
==================

- #86: Fix a regression caused by the new support for extending a template
  relative to itself. Using ``{% extends "some_asset:spec.jinja2" %}`` was
  no longer working and is now fixed. [mmerickel]


2.0 (2014-04-21)
================

- Claim Python 3.4 support
  [mmerickel]

- #75: Fix the missing piece of relative template loading by allowing a
  template to inherit from a template relative to itself, instead of
  forcing the parent to be on the search path.
  [mmerickel]

- #73: Added a new ``config.add_jinja2_renderer`` API that can create and
  override multiple Jinja2 renderers, each loaded using potentially different
  settings and extensions.

  The other APIs are now keyed on the renderer extension, as each extension
  may have different settings. Thus ``config.add_jinja2_search_path``,
  ``config.add_jinja2_extension``, and ``config.get_jinja2_environment``
  accept a ``name`` argument, which defaults to ``.jinja2``.

  This deprecates the old ``pyramid_jinja2.renderer_factory`` mechanism
  for adding renderers with alternate extensions.

  Configuration of the renderers has been updated to follow Pyramid's
  standard mechanisms for conflict detection. This means that if two modules
  both try to add a renderer for the ``.jinja2`` extension, they may raise a
  conflict or the modifications made by the invocation closest to the
  ``Configurator`` in the call-stack will win. This behavior can be affected
  by calling ``config.commit`` at appropriate times to force a configuration
  to take effect immediately. As such, configuration is deferred until
  commit-time, meaning that it is now possible
  ``config.get_jinja2_environment`` will return ``None`` because the changes
  have not yet been committed.
  [mmerickel]

Backward Incompatible Changes
-----------------------------

- The creation and configuration of the Jinja2 ``Environment`` is now deferred
  until commit-type in the Pyramid ``Configurator``. This means that
  ``config.get_jinja2_environment`` may return ``None``. To resolve this,
  invoke ``config.commit()`` before attempting to get the environment.

1.10 (2014-01-11)
=================

- #77: Change semantics of ``jinja2.bytecode_caching`` setting.  The new
  default is false (no bytecode caching) -- ``bytecode_caching`` must
  explicitly be set to true to enable a filesystem bytecode cache.
  In addition, an atexit callback to clean the cache is no longer
  registered (as this seemed to defeat most of the purpose of having
  a bytecode cache.)  Finally, a more complex bytecode cache may be
  configured by setting ``jinja2.bytecode_caching`` directly to a
  ``jinja2.BytecodeCache`` instance.  (This can not be done in a
  paste .ini file, it must be done programatically.)
  [dairiki]

- prevent error when using `python setup.py bdist_wheel`
  [msabramo]


1.9 (2013-11-08)
================

- fix indentation level for Jinja2ProjectTemplate in scaffolds/__init__.py
  [Bruno Binet]

- Remove unnecessary dependency on ``pyramid.interfaces.ITemplateRenderer``
  which was deprecated in Pyramid 1.5.
  [mmerickel]

- #68: Added `model_path_filter`, `route_path_filter` and `static_path_filter` filters
  [Remco]

- #74: Fixed issue with route being converted as_const by jinja2 engine when using btyecode cache
  [Remco]


1.8 (2013-10-03)
================

- #70: Do not pin for py3.2 compatibility unless running under py3.2
  [dairiki]


1.7 (2013-08-07)
================

- #56: python3.3: Non-ASCII characters in changelog breaks pip installation
  [Domen Kozar]

- #57: Remove useless warning: `DeprecationWarning: reload_templates setting
  is deprecated, use pyramid.reload_templates instead.`
  [Marc Abramowitz]


1.6 (2013-01-23)
================

- Set `jinja2.i18n.domain` default to the package name
  of the pyramid application.
  [Domen Kozar]

- Add `jinja2.globals` setting to add global objects into
  the template context
  [Eugene Fominykh]

- Add `jinja2.newstyle` setting to enable newstyle gettext calls
  [Thomas Schussler]

1.5 (2012-11-24)
================

- Add `pyramid.reload_templates` to set `jinja2.auto_reload` instead of
  using `reload_templates`. Deprecate the latter.
  [Domen Kozar]

- Clear bytecode cache on atexit
  [Domen Kozar]

- Add support for more Jinja2 options. Note support for jinja2.autoescape is
  limited to boolean only.

  * jinja2.block_start_string
  * jinja2.block_end_string
  * jinja2.variable_start_string
  * jinja2.variable_end_string
  * jinja2.comment_start_string
  * jinja2.comment_end_string
  * jinja2.line_statement_prefix
  * jinja2.line_comment_prefix
  * jinja2.trim_blocks
  * jinja2.newline_sequence
  * jinja2.optimized
  * jinja2.cache_size
  * jinja2.autoescape

  [Michael Ryabushkin]

1.4.2 (2012-10-17)
==================

- Add `jinja2.undefined` setting to change handling of undefined types.
  [Robert Buchholz]

- Remove redundant decoding error handling
  [Domen Kozar]

- Configure bytecode caching by default. Introduce `jinja2.bytecode_caching`
  and `jinja2.bytecode_caching_directory` settings.
  [Domen Kozar]

- Allow to add custom Jinja2 tests in `jinja2.tests` setting.
  [Sebastian Kalinowski]

1.4.1 (2012-09-12)
==================

- Fix brown-bag release
  [Domen Kozar]


1.4 (2012-09-12)
================

- Correctly resolve relative search paths passed to ``add_jinja2_search_path``
  and ``jinja2.directories``
  [Domen Kozar]

- #34: Don't recreate ``jinja2.Environment`` for ``add_jinja2_extension``
  [Domen Kozar]

- Drop Python 2.5 compatibility
  [Domen Kozar]

- Addition of ``static_url`` filter.

- Add ``dev`` and ``docs`` setup.py aliases (ala Pyramid).

- Changed template loading relative to package calling the renderer so
  it works like the Chameleon template loader.

1.3 (2011-12-14)
================

- Make scaffolding compatible with Pyramid 1.3a2+.

1.2 (2011-09-27)
================

- Make tests pass on Pyramid 1.2dev.

- Make compatible with Python 3.2 (requires Pyramid 1.3dev+).

1.1 (2011-07-24)
================

- Add ``get_jinja2_environment`` directive.

- Add all configurator directives to documentation.

1.0 (2011-05-12)
================

- Message domain can now be specified with *jinja2.i18n.domain* for i18n

- Paster template now sets up starter locale pot/po/mo files

- pyramid_jinja2 now depends on Jinja2 >= 2.5.0 due to
  ``jinja2.Environment.install_gettext_callables`` use
  https://github.com/Pylons/pyramid_jinja2/pull/21

- Added demo app just to visualize i18n work

0.6.2 (2011-04-06)
==================

- ``jinja2.ext.i18n`` is now added by default, see ``i18n.rst``
  for details

- Added ``add_jinja2_extension`` directive to the Configurator

- Updated jinja2.extensions parsing mechanism

- Fixed docs to indicate using asset: prefix is no longer necessary

0.6.1 (2011-03-03)
==================

- Asset-based loading now takes precedance and does not require
  "asset:" prefix

- Fixed the "current" package mechanism of asset: loading so that
  it more accurately finds the current package

- Dependency on ``pyramid_zcml`` removed.

0.6 (2011-02-15)
================

- Documentation overhauled.

- Templates can now be looked up by asset spec completely bypassing
  the search path by specifying a prefix of ``asset:``.

- Updated paster template to more closely relate to changes made
  to paster templmates in Pyramid core.

- Add new directive ``add_jinja2_search_path`` to the configurator
  when ``includeme`` is used.

0.5 (2011-01-18)
================

- Add ``includeme`` function (meant to be used via ``config.include``).

- Fix documentation bug related to ``paster create`` reported at
  https://github.com/Pylons/pyramid_jinja2/issues/12

- Depend upon Pyramid 1.0a10 + (to make ZCML work).

0.4 (2010-12-16)
================

Paster Template
---------------

- Changes to normalize with default templates shipping with Pyramid core:
  remove calls to ``config.begin()`` and ``config.end()`` from
  ``__init__.main``, entry point name changed to ``main``, entry
  ``__init__.py`` function name changed to ``main``, depend on WebError, use
  ``paster_plugins`` argument to setup function in setup.py, depend on
  Pyramid 1.0a6+ (use ``config`` rather than ``configurator``).

Tests
-----

- Use ``testing.setUp`` and ``testing.tearDown`` rather than constructing a
  Configurator (better fwd compat).

Features
--------

- Add ``model_url`` and ``route_url`` filter implementations (and
  documented).

Documentation
-------------

- Use Makefile which pulls in Pylons theme automagically.

0.3 (2010-11-26)
================

- Add ``jinja2.filters`` and ``jinja2.extensions`` settings (thanks to
  aodag).

- Document all known settings.

0.2 (2010-11-06)
================

- Template autoreloading did not function, even if ``reload_templates`` was
  set to ``True``.

0.1 (2010-11-05)
================

- First release.  *Not* backwards compatible with ``repoze.bfg.jinja2``: we
  use a filesystem loader (the directories to load from come from the
  ``jinja2.directories`` setting).  No attention is paid to the current
  package when resolving a renderer= line.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Pylons/pyramid_jinja2",
    "name": "pyramid-jinja2",
    "maintainer": "Pylons Project",
    "docs_url": null,
    "requires_python": ">=3.7.0",
    "maintainer_email": "pylons-discuss@googlegroups.com",
    "keywords": "web wsgi pylons pyramid jinja2",
    "author": "Rocky Burt",
    "author_email": "pylons-discuss@googlegroups.com",
    "download_url": "https://files.pythonhosted.org/packages/b9/18/bd33281543c1ea7b2b750d48049741c50dc5bf5aef29774dcf88d3071eab/pyramid_jinja2-2.10.1.tar.gz",
    "platform": null,
    "description": "Jinja2 bindings for Pyramid\n===========================\n\nThese are bindings for the `Jinja2 templating system <http://jinja.pocoo.org>`_\nfor the `Pyramid <https://trypyramid.com>`_ web framework.\n\nSee https://docs.pylonsproject.org/projects/pyramid-jinja2/en/latest/ for\ndocumentation or ``index.rst`` in the ``docs`` sub-directory of the source\ndistribution.\n\n2.10.1 (2023-02-07)\n===================\n\n- Rename \"master\" git branch to \"main\"\n\n- Add Python 3.11 and 3.12 support.\n\n- Replace usage of private Pyramid APIs.\n\n2.10 (2022-03-27)\n=================\n\n- Add ``jinja2.i18n_extension`` configuration setting.\n  See https://github.com/Pylons/pyramid_jinja2/pull/165\n\n2.9.2 (2022-03-19)\n==================\n\n- Support Jinja2 >= 3.0.\n\n- Only import ``jinja2.pass_context`` if available on Jinja2 >= 3.0, otherwise\n  fallback to ``jinja2.contextfilter``.\n  See https://github.com/Pylons/pyramid_jinja2/pull/164\n\n2.9.1 (2022-03-12)\n==================\n\n**This release has been yanked and is no longer available.**\n\n- Fix package metadata. No changes from 2.9.\n\n2.9 (2022-03-12)\n================\n\n**This release has been yanked and is no longer available.**\n\n- Drop Python 3.6 support.\n\n- Add Python 3.9 and 3.10 support.\n\n- Refactor project structure to make wheel distribution smaller.\n\n- Blackify the codebase.\n\n- Use the newer ``@jinja2.pass_context`` in favor of the deprecated\n  ``@jinja2.contextfilter``.\n  See https://github.com/Pylons/pyramid_jinja2/pull/159\n\n2.8 (2019-01-25)\n================\n\n- Drop Python 3.3 support.\n\n- Add Python 3.6 and 3.7 support.\n\n- Support the ``mapping`` argument in the injected ``gettext`` function.\n  See https://github.com/Pylons/pyramid_jinja2/pull/143\n\n2.7 (2016-11-15)\n================\n\n- Drop Python 2.6 and 3.2 support.\n\n- Add Python 3.5 support.\n\n- #123: Switch to pytest and pip for testing and installation in the\n  documentation and scaffold. nose and coverage are still used in the core\n  pyramid_jinja2 package [stevepiercy].\n\n- Prefer ``resource_url`` over deprecated ``model_url``. Pyramid has changed\n  its vocabulary, so let's reflect the changes. [Mikko Ohtamaa]\n\n- Support a dotted path to a gettext wrapper for the ``jinja2.i18n.gettext``\n  setting. [mmerickel]\n\n2.6.2 (2016-01-23)\n==================\n\n- Officially drop support for Python 3.2, test under Python 3.5 and pypy3\n  [Domen Kozar]\n\n2.6.1 (2016-01-20)\n==================\n\n- Don't include .pyc in wheel file [Domen Kozar]\n\n2.6 (2016-01-20)\n================\n\n- #116: Update scaffold to be consistent with Pyramid's default scaffolds\n  [stevepiercy]\n\n2.5 (2015-04-16)\n================\n\n- #106: Allow specifying a custom pyramid_jinja.i18n.GetTextWrapper [dstufft]\n\n2.4 (2015-03-27)\n================\n\n- #105: Support ``jinja2.finalize`` configuration setting. [dstufft]\n\n- #94: Fix loading of templates with relative names on Windows [zart]\n\n- Support Python 3.4 [mmerickel]\n\n- Improve scaffold [marioidival]\n\n- #98: Avoid get_current_request where possible [housleyjk]\n\n- #99: Add resource_path filter [javex]\n\n2.3.3 (2014-07-02)\n==================\n\n- #91: Fix a recursion error while attempting to include a template with the\n  same name as one of the parents that was already loaded. [mmerickel]\n\n2.3.2 (2014-06-13)\n==================\n\n- Fix 2.3.1 brownbag release. It had some erroneous didn't-mean-to-push\n  changes that are now solved. Brought coverage back up to 100%.\n\n2.3.1 (2014-06-13)\n==================\n\n- Improve the template-relative searchpath logic to search more possibilities\n  in the include-chain built up from templates including or extending\n  other templates. The logic for when the chain was longer than just one\n  template including another template was broken.\n\n2.3 (2014-05-30)\n================\n\n- Require ``pyramid_jinja2`` to be included even when using\n  ``pyramid_jinja2.renderer_factory``. It is now a thin wrapper around the\n  default renderer and can be used to share the same settings with another\n  file extension. [mmerickel]\n\nBackward Incompatible Changes\n-----------------------------\n\n- ``pyramid_jinja2`` **must** be included into the ``Configurator`` in order\n  to use ``pyramid_jinja2.renderer_factory`` otherwise you may see the\n  exception::\n\n    ValueError: As of pyramid_jinja2 2.3, the use of the\n    \"pyramid_jinja2.renderer_factory\" requires that pyramid_jinja2 be\n    configured via config.include(\"pyramid_jinja2\") or the equivalent\n    \"pyramid.includes\" setting.\n\n  The fix is to include ``pyramid_jinja2``::\n\n    config.include(\"pyramid_jinja2\")\n\n2.2 (2014-05-30)\n================\n\n- #88: Formalize template loading order and allow all lookups to fallback to\n  the search path. A template is now always searched for relative to its\n  parent template. If not found, the lookup will fallback to the search path.\n  [mmerickel]\n\n- Add ``prepend`` option to ``config.add_jinja2_search_path`` to allow\n  prepending of paths to the beginning of the search path if a path should\n  override previously defined paths. [mmerickel]\n\n2.1 (2014-05-16)\n================\n\n- The 2.0 series started adding the package that invoked\n  ``config.add_jinja2_renderer`` to the template search path. This is\n  being removed in favor of explicit search paths and will hopefully not\n  affect many people as it has only been available for a couple weeks. The\n  only automatic search path left is the one added by the default ``.jinja2``\n  renderer created when including ``pyramid_jinja2``. [mmerickel]\n\n- Adjust the ``config.include(\"pyramid_jinja2\")`` to add any packages from\n  ``jinja2.directories`` **before** the default search path at the base of\n  the app. Previously there was no way to override that search path.\n  [mmerickel]\n\n2.0.2 (2014-05-06)\n==================\n\n- The path of the child template is always considered when inheriting from\n  a base template. Therefore when doing ``render(\"templates/foo.jinja2\")``\n  and ``foo.jinja2`` has an ``{% extends \"base.jinja2\" %}``, the template\n  will be searched for as ``\"templates/base.jinja2\"`` on the search path.\n  Previously the path of the child template was ignored when doing the\n  lookup for the base, causing some very subtle and unrecoverable lookup\n  errors when the child template was found relative to the caller instead\n  of being found on the search path. [mmerickel]\n\n- This release restores the default search path behaviors from the 1.x series\n  that were inadvertently removed in the 2.x. The project's root package is\n  added to the search path by default. [mmerickel]\n\n2.0.1 (2014-04-23)\n==================\n\n- #86: Fix a regression caused by the new support for extending a template\n  relative to itself. Using ``{% extends \"some_asset:spec.jinja2\" %}`` was\n  no longer working and is now fixed. [mmerickel]\n\n\n2.0 (2014-04-21)\n================\n\n- Claim Python 3.4 support\n  [mmerickel]\n\n- #75: Fix the missing piece of relative template loading by allowing a\n  template to inherit from a template relative to itself, instead of\n  forcing the parent to be on the search path.\n  [mmerickel]\n\n- #73: Added a new ``config.add_jinja2_renderer`` API that can create and\n  override multiple Jinja2 renderers, each loaded using potentially different\n  settings and extensions.\n\n  The other APIs are now keyed on the renderer extension, as each extension\n  may have different settings. Thus ``config.add_jinja2_search_path``,\n  ``config.add_jinja2_extension``, and ``config.get_jinja2_environment``\n  accept a ``name`` argument, which defaults to ``.jinja2``.\n\n  This deprecates the old ``pyramid_jinja2.renderer_factory`` mechanism\n  for adding renderers with alternate extensions.\n\n  Configuration of the renderers has been updated to follow Pyramid's\n  standard mechanisms for conflict detection. This means that if two modules\n  both try to add a renderer for the ``.jinja2`` extension, they may raise a\n  conflict or the modifications made by the invocation closest to the\n  ``Configurator`` in the call-stack will win. This behavior can be affected\n  by calling ``config.commit`` at appropriate times to force a configuration\n  to take effect immediately. As such, configuration is deferred until\n  commit-time, meaning that it is now possible\n  ``config.get_jinja2_environment`` will return ``None`` because the changes\n  have not yet been committed.\n  [mmerickel]\n\nBackward Incompatible Changes\n-----------------------------\n\n- The creation and configuration of the Jinja2 ``Environment`` is now deferred\n  until commit-type in the Pyramid ``Configurator``. This means that\n  ``config.get_jinja2_environment`` may return ``None``. To resolve this,\n  invoke ``config.commit()`` before attempting to get the environment.\n\n1.10 (2014-01-11)\n=================\n\n- #77: Change semantics of ``jinja2.bytecode_caching`` setting.  The new\n  default is false (no bytecode caching) -- ``bytecode_caching`` must\n  explicitly be set to true to enable a filesystem bytecode cache.\n  In addition, an atexit callback to clean the cache is no longer\n  registered (as this seemed to defeat most of the purpose of having\n  a bytecode cache.)  Finally, a more complex bytecode cache may be\n  configured by setting ``jinja2.bytecode_caching`` directly to a\n  ``jinja2.BytecodeCache`` instance.  (This can not be done in a\n  paste .ini file, it must be done programatically.)\n  [dairiki]\n\n- prevent error when using `python setup.py bdist_wheel`\n  [msabramo]\n\n\n1.9 (2013-11-08)\n================\n\n- fix indentation level for Jinja2ProjectTemplate in scaffolds/__init__.py\n  [Bruno Binet]\n\n- Remove unnecessary dependency on ``pyramid.interfaces.ITemplateRenderer``\n  which was deprecated in Pyramid 1.5.\n  [mmerickel]\n\n- #68: Added `model_path_filter`, `route_path_filter` and `static_path_filter` filters\n  [Remco]\n\n- #74: Fixed issue with route being converted as_const by jinja2 engine when using btyecode cache\n  [Remco]\n\n\n1.8 (2013-10-03)\n================\n\n- #70: Do not pin for py3.2 compatibility unless running under py3.2\n  [dairiki]\n\n\n1.7 (2013-08-07)\n================\n\n- #56: python3.3: Non-ASCII characters in changelog breaks pip installation\n  [Domen Kozar]\n\n- #57: Remove useless warning: `DeprecationWarning: reload_templates setting\n  is deprecated, use pyramid.reload_templates instead.`\n  [Marc Abramowitz]\n\n\n1.6 (2013-01-23)\n================\n\n- Set `jinja2.i18n.domain` default to the package name\n  of the pyramid application.\n  [Domen Kozar]\n\n- Add `jinja2.globals` setting to add global objects into\n  the template context\n  [Eugene Fominykh]\n\n- Add `jinja2.newstyle` setting to enable newstyle gettext calls\n  [Thomas Schussler]\n\n1.5 (2012-11-24)\n================\n\n- Add `pyramid.reload_templates` to set `jinja2.auto_reload` instead of\n  using `reload_templates`. Deprecate the latter.\n  [Domen Kozar]\n\n- Clear bytecode cache on atexit\n  [Domen Kozar]\n\n- Add support for more Jinja2 options. Note support for jinja2.autoescape is\n  limited to boolean only.\n\n  * jinja2.block_start_string\n  * jinja2.block_end_string\n  * jinja2.variable_start_string\n  * jinja2.variable_end_string\n  * jinja2.comment_start_string\n  * jinja2.comment_end_string\n  * jinja2.line_statement_prefix\n  * jinja2.line_comment_prefix\n  * jinja2.trim_blocks\n  * jinja2.newline_sequence\n  * jinja2.optimized\n  * jinja2.cache_size\n  * jinja2.autoescape\n\n  [Michael Ryabushkin]\n\n1.4.2 (2012-10-17)\n==================\n\n- Add `jinja2.undefined` setting to change handling of undefined types.\n  [Robert Buchholz]\n\n- Remove redundant decoding error handling\n  [Domen Kozar]\n\n- Configure bytecode caching by default. Introduce `jinja2.bytecode_caching`\n  and `jinja2.bytecode_caching_directory` settings.\n  [Domen Kozar]\n\n- Allow to add custom Jinja2 tests in `jinja2.tests` setting.\n  [Sebastian Kalinowski]\n\n1.4.1 (2012-09-12)\n==================\n\n- Fix brown-bag release\n  [Domen Kozar]\n\n\n1.4 (2012-09-12)\n================\n\n- Correctly resolve relative search paths passed to ``add_jinja2_search_path``\n  and ``jinja2.directories``\n  [Domen Kozar]\n\n- #34: Don't recreate ``jinja2.Environment`` for ``add_jinja2_extension``\n  [Domen Kozar]\n\n- Drop Python 2.5 compatibility\n  [Domen Kozar]\n\n- Addition of ``static_url`` filter.\n\n- Add ``dev`` and ``docs`` setup.py aliases (ala Pyramid).\n\n- Changed template loading relative to package calling the renderer so\n  it works like the Chameleon template loader.\n\n1.3 (2011-12-14)\n================\n\n- Make scaffolding compatible with Pyramid 1.3a2+.\n\n1.2 (2011-09-27)\n================\n\n- Make tests pass on Pyramid 1.2dev.\n\n- Make compatible with Python 3.2 (requires Pyramid 1.3dev+).\n\n1.1 (2011-07-24)\n================\n\n- Add ``get_jinja2_environment`` directive.\n\n- Add all configurator directives to documentation.\n\n1.0 (2011-05-12)\n================\n\n- Message domain can now be specified with *jinja2.i18n.domain* for i18n\n\n- Paster template now sets up starter locale pot/po/mo files\n\n- pyramid_jinja2 now depends on Jinja2 >= 2.5.0 due to\n  ``jinja2.Environment.install_gettext_callables`` use\n  https://github.com/Pylons/pyramid_jinja2/pull/21\n\n- Added demo app just to visualize i18n work\n\n0.6.2 (2011-04-06)\n==================\n\n- ``jinja2.ext.i18n`` is now added by default, see ``i18n.rst``\n  for details\n\n- Added ``add_jinja2_extension`` directive to the Configurator\n\n- Updated jinja2.extensions parsing mechanism\n\n- Fixed docs to indicate using asset: prefix is no longer necessary\n\n0.6.1 (2011-03-03)\n==================\n\n- Asset-based loading now takes precedance and does not require\n  \"asset:\" prefix\n\n- Fixed the \"current\" package mechanism of asset: loading so that\n  it more accurately finds the current package\n\n- Dependency on ``pyramid_zcml`` removed.\n\n0.6 (2011-02-15)\n================\n\n- Documentation overhauled.\n\n- Templates can now be looked up by asset spec completely bypassing\n  the search path by specifying a prefix of ``asset:``.\n\n- Updated paster template to more closely relate to changes made\n  to paster templmates in Pyramid core.\n\n- Add new directive ``add_jinja2_search_path`` to the configurator\n  when ``includeme`` is used.\n\n0.5 (2011-01-18)\n================\n\n- Add ``includeme`` function (meant to be used via ``config.include``).\n\n- Fix documentation bug related to ``paster create`` reported at\n  https://github.com/Pylons/pyramid_jinja2/issues/12\n\n- Depend upon Pyramid 1.0a10 + (to make ZCML work).\n\n0.4 (2010-12-16)\n================\n\nPaster Template\n---------------\n\n- Changes to normalize with default templates shipping with Pyramid core:\n  remove calls to ``config.begin()`` and ``config.end()`` from\n  ``__init__.main``, entry point name changed to ``main``, entry\n  ``__init__.py`` function name changed to ``main``, depend on WebError, use\n  ``paster_plugins`` argument to setup function in setup.py, depend on\n  Pyramid 1.0a6+ (use ``config`` rather than ``configurator``).\n\nTests\n-----\n\n- Use ``testing.setUp`` and ``testing.tearDown`` rather than constructing a\n  Configurator (better fwd compat).\n\nFeatures\n--------\n\n- Add ``model_url`` and ``route_url`` filter implementations (and\n  documented).\n\nDocumentation\n-------------\n\n- Use Makefile which pulls in Pylons theme automagically.\n\n0.3 (2010-11-26)\n================\n\n- Add ``jinja2.filters`` and ``jinja2.extensions`` settings (thanks to\n  aodag).\n\n- Document all known settings.\n\n0.2 (2010-11-06)\n================\n\n- Template autoreloading did not function, even if ``reload_templates`` was\n  set to ``True``.\n\n0.1 (2010-11-05)\n================\n\n- First release.  *Not* backwards compatible with ``repoze.bfg.jinja2``: we\n  use a filesystem loader (the directories to load from come from the\n  ``jinja2.directories`` setting).  No attention is paid to the current\n  package when resolving a renderer= line.\n",
    "bugtrack_url": null,
    "license": "BSD-derived (Repoze)",
    "summary": "Jinja2 template bindings for the Pyramid web framework",
    "version": "2.10.1",
    "project_urls": {
        "Changelog": "https://github.com/Pylons/pyramid_jinja2/blob/main/CHANGES.rst",
        "Documentation": "https://docs.pylonsproject.org/projects/pyramid_jinja2/en/latest/",
        "Homepage": "https://github.com/Pylons/pyramid_jinja2",
        "Issue Tracker": "https://github.com/Pylons/pyramid_jinja2/issues"
    },
    "split_keywords": [
        "web",
        "wsgi",
        "pylons",
        "pyramid",
        "jinja2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0dd65863c289e57ddad25f43d6396db263f982b11e88a6bd1cb6a10484b4fef",
                "md5": "bb3dc1bfee0aca3b6b27f599cda28c71",
                "sha256": "425a52a0c1cc2a83e183d22bb15cdd999112aa4c7b1e0f4e21c49a6b523ad6e1"
            },
            "downloads": -1,
            "filename": "pyramid_jinja2-2.10.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb3dc1bfee0aca3b6b27f599cda28c71",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.0",
            "size": 43193,
            "upload_time": "2024-02-08T06:08:17",
            "upload_time_iso_8601": "2024-02-08T06:08:17.452508Z",
            "url": "https://files.pythonhosted.org/packages/f0/dd/65863c289e57ddad25f43d6396db263f982b11e88a6bd1cb6a10484b4fef/pyramid_jinja2-2.10.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b918bd33281543c1ea7b2b750d48049741c50dc5bf5aef29774dcf88d3071eab",
                "md5": "c2ff48aa8806d9c70380d5f88fb0f5ac",
                "sha256": "8c508cb35c135f95149ca236110f9c8875343575740d16c5cb73a50ef1c21677"
            },
            "downloads": -1,
            "filename": "pyramid_jinja2-2.10.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c2ff48aa8806d9c70380d5f88fb0f5ac",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.0",
            "size": 77976,
            "upload_time": "2024-02-08T06:08:19",
            "upload_time_iso_8601": "2024-02-08T06:08:19.289709Z",
            "url": "https://files.pythonhosted.org/packages/b9/18/bd33281543c1ea7b2b750d48049741c50dc5bf5aef29774dcf88d3071eab/pyramid_jinja2-2.10.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-08 06:08:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Pylons",
    "github_project": "pyramid_jinja2",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "pyramid-jinja2"
}
        
Elapsed time: 0.18876s