Page layouts in mod_python?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Tue Dec 19 17:43:52 EST 2006


Michael a écrit :
> Hey everyone,
> 
> Is it possible to automatically insert headers/footers using
> mod_python?
> I will be not be using PSP's, so I cannot use the PSP/include solution.
> Furthermore, the header will be dynamic; it won't be a static HTML
> page.
> 
> In short, I've been looking for a page layout facility using
> mod_python.
> (Similar to the layout capability in Ruby on Rails.)

mod_python is mainly a librairy exposing the apache API to Python - not 
a full-stack db-to-web framework. What you want here is a HTML 
templating system. There are quite a lot available in Python - look for 
SimpleTAL, Genshi, Myghty, Jinja, Cheetah, etc...

HTH



More information about the Python-list mailing list