Five bridges and patches to use Chameleon with Zope 2.
Project description
Overview
========
The five.pt package brings the Chameleon template engine to Zope
2. It's a drop-in replacement, providing bridges to the most common
API.
Support for browser pages, viewlets and viewlet managers is included.
Usage
-----
To enable Chameleon, simply include the ZCML configuration::
<include package="five.pt" />
Tempates may be instantiated directly. Here's an example of a browser
view which uses a view page template::
from Products.Five import BrowserView
from five.pt.pagetemplate import ViewPageTemplateFile
class SimpleView(BrowserView):
index = ViewPageTemplateFile('simple.pt')
Other template classes are available, see the ``pagetemplate``
module.
For general information about Chameleon, see
http://chameleon.repoze.org/.
Changelog
=========
five.pt 0.2 (released 11/29/2008)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- From Zope 2.12 onwards, do not acquisition-wrap content
provider. [malthe]
- Split out CMF-related code to separate package. [malthe]
- Compatibility changes to support Zope 2.10. [malthe]
five.pt 0.1 (released 11/19/2008)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Initial release.
- Simplified template class inheritance. [malthe]
- Added ``path`` and ``exists`` functions to skin template
namespace. [malthe]
- Added call-support for old-style classes in path
expressions. [malthe]
- Added monkey-patches to replace template engine for module-level
view page template instances. [malthe]
- Made `EContext` class more robust. [malthe]
- Register custom file-system page template class for use with CMF
form controllers. [malthe]
- Register custom file-system page template class for use with CMF
directory views. [malthe]
- Added meta-directives to register browser views, viewlets and
viewlet managers using Chameleon templates. [malthe]
- Updated to latest API. [malthe]
- Package structure. [hannosch]
========
The five.pt package brings the Chameleon template engine to Zope
2. It's a drop-in replacement, providing bridges to the most common
API.
Support for browser pages, viewlets and viewlet managers is included.
Usage
-----
To enable Chameleon, simply include the ZCML configuration::
<include package="five.pt" />
Tempates may be instantiated directly. Here's an example of a browser
view which uses a view page template::
from Products.Five import BrowserView
from five.pt.pagetemplate import ViewPageTemplateFile
class SimpleView(BrowserView):
index = ViewPageTemplateFile('simple.pt')
Other template classes are available, see the ``pagetemplate``
module.
For general information about Chameleon, see
http://chameleon.repoze.org/.
Changelog
=========
five.pt 0.2 (released 11/29/2008)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- From Zope 2.12 onwards, do not acquisition-wrap content
provider. [malthe]
- Split out CMF-related code to separate package. [malthe]
- Compatibility changes to support Zope 2.10. [malthe]
five.pt 0.1 (released 11/19/2008)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Initial release.
- Simplified template class inheritance. [malthe]
- Added ``path`` and ``exists`` functions to skin template
namespace. [malthe]
- Added call-support for old-style classes in path
expressions. [malthe]
- Added monkey-patches to replace template engine for module-level
view page template instances. [malthe]
- Made `EContext` class more robust. [malthe]
- Register custom file-system page template class for use with CMF
form controllers. [malthe]
- Register custom file-system page template class for use with CMF
directory views. [malthe]
- Added meta-directives to register browser views, viewlets and
viewlet managers using Chameleon templates. [malthe]
- Updated to latest API. [malthe]
- Package structure. [hannosch]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
five.pt-0.2.tar.gz
(11.1 kB
view hashes)