Login

Repoze Blog

2008-09-26 00:00:00-05:00

repoze.bfg 0.3.8 Released with Chameleon and Genshi-style Support

Malthe Borch has been toiling away at renaming and refactoring the z3c.pt templating engine into something he's calling Chameleon. The first releases of Chameleon were made a couple of days ago, and I've updated repoze.bfg to a 0.3.8 version that uses Chameleon instead of z3c.pt. You can get this version by using easy_install -i http://dist.repoze.org/lemonade/dev/simple -U repoze.bfg.

repoze.bfg no longer supports z3c.pt itself, but all apps that use the repoze.bfg.template API functions will continue to function properly, albeit using Chameleon "under the hood" instead of z3c.pt. Importing API functions from repoze.bfg.template is now a deprecated spelling (although these APIs will remain around for a good long time, and won't be removed without a deprecation warning being issued). Newly generated projects will by default import template-related functions from repoze.bfg.chameleon_zpt instead of repoze.bfg.template.

One of the things that moving to Chameleon allows us to do easily is to support Genshi-style templates. To that end, there are new APIs in repoze.bfg which allow you to use Genshi-style templates out of the box. See the API documentation regarding the repoze.bfg.chameleon_genshi module for more info.

Thanks Malthe!

- Chris McDonough

posted at: 00:00 | permalink