Five bridges and patches to use Chameleon with Zope 2.
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/five
.gitignore
.travis.yml
AUTHOR.rst
CHANGES.rst
MANIFEST.in
README.rst
bootstrap.py
buildout.cfg
setup.cfg
setup.py
versions.cfg

README.rst

Overview

This package brings the Chameleon template engine to the Zope application server.

It works using monkey-patching onto the existing API (specifically, the TALInterpreter and PageTemplate classes). In simple terms, what the patching does is to replace the TAL interpreter class and make sure that the so-called "cooking" routine uses the Chameleon parser and compiler instead of the zope.* reference implementation.

Usage

To enable Chameleon, configure the package using ZCML:

<include package="five.pt" />

For more information on Chameleon, see http://chameleon.readthedocs.io/en/latest/.