Skip to main content

Five bridges and patches to use Chameleon with Zope 2 and CMF.

Project description

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 CMF skin templates, browser pages, viewlets and viewlet managers is included.

Usage

To enable Chameleon, simply include the ZCML configuration.

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/.

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

five.pt-0.1.tar.gz (11.3 kB view hashes)

Uploaded Source

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