chameleon.zpt versus standard Zope page templates

The default expression type is Python

With zope.pagetemplate

With chameleon.zpt

Tuple unpacking is allowed when defining variables
With zope.pagetemplate

...

With chameleon.zpt

...

Generators are allowed in tal:repeat statements
Note that the repeat variable is not available in this case.

With chameleon.zpt
">
...

Attribute-access to dictionary entries is allowed in Python-expressions

With zope.pagetemplate

using dictionary['key']

With chameleon.zpt
using dictionary.key

Genshi expression interpolation syntax is supported outside tags and inside static attributes

With zope.pagetemplate

Hello, css!

With chameleon.zpt

Hello, ${'world'}!

Aucun vote pour l'instant.
Étiquettes: