[ZPT] Added Python code blocks to ZPT

Phillip Hutchings sitharus at gmail.com
Tue May 17 23:46:22 EDT 2005


On 18/05/05, Ian Bicking <ianb at colorstudy.com> wrote:
> Well, ZPT is pretty slow moving these days, but there's a feature that
> I'd be interested in.  It's inspired by Kid
> (http://lesscode.org/projects/kid/), which is very similar to ZPT.  In
> it, you can have Python code:
> 
> <?python
>    ...
> ?>

This is precisely why TAL was created - to avoid having code blocks.
Code blocks screw with things such as browsers when you use them
outside of the preprocessor. With TAL I know how my template will look
even when it has the TAL code in it. If I tweak the design I don't
need to maintain a copy with TAL and without TAL, I just have one to
work with.

I would suggest using something other than ZPT if you want
functionality like that. There are plenty of options.

-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the ZPT mailing list