Simple HTML template engine?

Gerardo Herzig gherzig at fmed.uba.ar
Tue Oct 16 09:18:05 EDT 2007


allen.fowler wrote:

>Hello,
>
>Can anyone recommend a simple python template engine for generating
>HTML that relies only on the Pyhon Core modules?
>
>No need for caching, template compilation, etc.
>
>Speed is not a major issue.
>
>I just need looping and conditionals. Template inheritance would be a
>bonus.
>
>I've seen Genshi and Cheetah, but they seem way too complex.
>
>Any ideas?
>
>I'm sure I could build something myself, but I'm sure this has already
>been done quite a few times.  Why re-invent the wheel, right?
>
>
>Thank you,
>Allen
>
>  
>
http://htmltmpl.sourceforge.net/

It has loops and conditionals, simple to use. Very simple.
Kind of old program (dont seems to have suffer modifications since 2001)

Try it.
Cheers.

Gerardo



More information about the Python-list mailing list