Graham Dumpleton a écrit : > Bruno Desthuilliers wrote: > >>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... > > > Contrary to the above advise, you could actually use mod_python to do > what you want and you do not need a full stack to do it.
I never said the OP would need a full-stack framework - just that there are existing solutions that can solve the problem in a very simple way. -- http://mail.python.org/mailman/listinfo/python-list