Simple HTML template engine?

Carl Banks pavlovevidence at gmail.com
Tue Oct 16 11:44:21 EDT 2007


On Oct 16, 4:07 am, jean-michel bain-cornu <nos... at nospam.fr> wrote:
> > 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 have written my own a couple of years ago.

Haven't we all.

When I wrote mine (HRL), the 5 million web page systems out there
seemed all to be either:

A. Intricate frameworks like Zope with a maniacal insistence on
separation of content from presentation (not that that's bad, it's
just a lot of unnecessary overhead for my needs).

or

B. Template systems with very little versatility.

These days there seems to be more coverage of different needs.  For
instance, Mako looks like something I might have used if it had been
around back then.


Carl Banks




More information about the Python-list mailing list