templates

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Mon Jan 30 17:52:38 EST 2006


projecktzero a écrit :
> For some of the web programming I've done in Python, I've used
> htmltmpl. I had some experience with it in Perl, and found a Python
> version.
> 
> http://htmltmpl.sourceforge.net/
 >
> I like that there's nearly a complete separation between the
> presentation and the code. This is great when one person is designing
> the pages and another is writing the code to drive those pages.
> However, that's usually not the case for me. I'm usually doing both,
> and I'm thinking there's got to be something possibly better out there.

May be... Depending on your definition of "better" !-)

> I'm curious about other templating systems. 

Then here are two starting points:
http://www.webwareforpython.org/Papers/Templates/
http://www.skreak.com/wp/

> I wouldn't be opposed to a
> little bit of code in the template. I just don't want to go to the
> other extreme of something like PHP or ASP. i.e. all code in the
> template.

You can do PHP without messing up logic and presentation.

> What web templating systems do you use and why?

Mostly ZopePageTemplate, and actually playing with Myghty too.




More information about the Python-list mailing list