Skip to main content

XML-based template compiler.

Project description

Overview

Chameleon compiles templates to Python byte-code. It includes a complete implementation of the Zope Page Templates (ZPT) language.

The engine itself performs 10-15 times better than the reference implementation and real-world benchmarks show an overall performance improvement in complex applications of 30-50%.

Compatibility

Works on Python 2.4, 2.5 and 2.6, including Google App Engine.

Development

The code is maintained in a subversion repository:

svn://svn.repoze.org/svn/chameleon/trunk

If you want to contribute or need support, join #repoze on freenode irc or write the mailinglist.

Changes

1.1.1 (released 2010-01-26)

  • Python 2.5 compatibility fixes (symptom: TypeError: default __new__ takes no parameters with the statement generating the error something like ast.Name("econtext", ast.Load())).

1.1 (released 2010-01-26)

  • Made all tests compatible with Python 2.4.

  • Use the 2.5 AST for code transformation for compatibility with Google App Engine. The AST utilities required were copied from Genshi (license document included).

1.0.8 (released 2010-01-12)

1.0.7 (released 2010-01-07)

  • Fixed encoding issue of translated attributes. [kobold]

  • Fixed translation issue, that would prevent translation of tag contents with both named and unnamed subtags. [kobold]

  • Fixed issue where messages could contain a double space. [kobold]

1.0.6 (released 2009-12-14)

  • Fixed white space issue.

  • Fixed character encoding issue.

  • Fixed issue where macro extension would fail.

1.0.5 (released 2009-12-08)

  • Fixed issue where the translation compiler would break on messages that contained the formatting character ‘%’.

  • Fixed white space issue.

1.0.4 (released 2009-11-15)

  • Fixed issue where the file-based template constructor did not accept the encoding parameter.

  • Use more caution when falling back to dictionary lookup.

1.0.3 (released 2009-11-12)

  • Fixed issue where traceback would contain erroneous debugging information. The source code is now taken directly from the traceback object.

  • Include Python expression in syntax error exception message.

1.0.2 (released 2009-11-10)

  • Really fixed ZCA import fallbacks.

1.0.1 (released 2009-11-04)

  • Fixed ZCA import fallbacks.

1.0 (released 2009-11-01)

Features:

  • HTML5 doctype is now supported.

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

Chameleon-1.1.1.tar.gz (90.5 kB view details)

Uploaded Source

File details

Details for the file Chameleon-1.1.1.tar.gz.

File metadata

  • Download URL: Chameleon-1.1.1.tar.gz
  • Upload date:
  • Size: 90.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Chameleon-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4bd3b1b3ee667746d0c8b1bad799ce68b5b096b7ef9accab06ff1bdd97af56d3
MD5 28e8e5ab450c2603d92122b40586e5b3
BLAKE2b-256 5550db2803e2855fc2e7634ed60e972c5b3d688f725c0635a87bb155bc3eea3b

See more details on using hashes here.

Supported by

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