Skip to main content

Mako template bindings for the Pyramid web framework

Project description

Mako bindings for Pyramid

These are bindings for the Mako templating system for the Pyramid web framework.

Documentation for pyramid_mako.

1.1.0 (2019-08-18)

  • Add support for Python 3.5, 3.6, 3.7.

  • Require mako >= 1.1.0.

  • Add a config option for preprocessor_wants_settings. If set to true, the preprocessor will be wrapped in a function that invokes the preprocessor with pyramid’s config settings as the second argument.

1.0.2 (2014-04-22)

1.0.1 (2014-04-16)

  • Bump the required version of Mako to 0.8 or newer for issue #22 (add future_imports). If you would like to use an older version of Mako, please pin your dependency to version 0.3.1 of pyramid_mako.

1.0 (2014-04-15)

  • Add new configuration variable for future_imports. See issue #22 (https://github.com/Pylons/pyramid_mako/issues/22)

  • Fix issue #19, whereby pyramid.reload_templates stopped functioning due to changes in pyramid_mako. The lookup is now completed at template render, instead of when the factory returns the renderer. See: (https://github.com/Pylons/pyramid_mako/issues/19)

  • Tuple return values in the form of (‘defname’, {}) are no longer supported, and will result in a ValueError being raised.

  • Fix an packaging issue whereby *.foo files were not included in the MANIFEST.

  • Caller-relative template lookup is now supported. Any template that fails to be found in the default search paths will be searched relative to the caller package.

  • Allow overriding the pyramid.reload_templates using mako.reload_templates.

  • Change the way that custom user values passed to the renderer are merged with the system provided variables. This allows the user to pass in a variable named ‘context’ and have it correctly override the system provided context, and THEN get correctly renamed so that Mako doesn’t complain about a variable being passed in that isn’t allowed due to it being reserved.

  • Drop testing dependency on nose-selecttests.

0.3.1 (2013-10-22)

  • Re-enable lazy loading of the mako renderer, allowing the settings to be configured after pyramid_mako has been included, as long as everything happens in the same commit.

0.3 (2013-10-20)

  • Add a new Configurator directive, config.add_mako_renderer which can be used to add a new mako renderer for a given extension. This directive accepts an optional settings_prefix to load settings and configuration differently per-renderer as well.

  • Removed the private APIs, IMakoLookup, MakoRendererFactoryHelper, and renderer_factory. See the new config.add_mako_renderer API for updating offending code.

  • Remove dependency on pyramid.interfaces.ITemplateRenderer from Pyramid 1.5.

0.2 (2013-09-07)

  • Docs up-to-date

  • Latest changes pulled from Pyramid

  • Latest tests pulled from Pyramid

  • All tests updated to refer to fixtures in pyramid_mako

0.1 (2012-03-12)

  • First release. Extracted from Pyramid core.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_mako-1.1.0.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

pyramid_mako-1.1.0-py2.py3-none-any.whl (14.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_mako-1.1.0.tar.gz.

File metadata

  • Download URL: pyramid_mako-1.1.0.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pyramid_mako-1.1.0.tar.gz
Algorithm Hash digest
SHA256 0066c863441f1c3ddea60cee1ccc50d00a91a317a8052ca44131da1a12a840e2
MD5 a8037c635252484e8d1914b23d597883
BLAKE2b-256 637b5e2af68f675071a6bad148c1c393928f0ef5fcd94e95cbf53b89d6471a83

See more details on using hashes here.

File details

Details for the file pyramid_mako-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pyramid_mako-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for pyramid_mako-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 76104592d292b6974cf7080aa52405c51f396a621535f01e274d7fe546e85a43
MD5 0053f560c69e395652be06c6469605e8
BLAKE2b-256 57cebc0aec2166cff2b2a9d061b02b07bfaa2413f31a5f828987038e5e99d53c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page