Graham Dumpleton
grahamd at dscpl.com.au
Wed Jul 13 02:10:29 EDT 2005
Joshua D. Drake wrote .. > Gregory Bond wrote: > > Joshua D. Drake wrote: > > > >> However I still need a templating system. > > > > > > See the FAQ entry: > > > > http://www.modpython.org/FAQ/faqw.py?req=show&file=faq03.010.htp > > This is good info, thanks but I was actually looking for some opinions. > I am not trying to start a flamewar but hearing/reading about > experiences from actual mod_python users is going to be helpful. Different systems are implemented in different ways and it more depends on your personal preferences for the type of system you want. The different systems can be loosely categorised into the following types: 1. Python code executed as part of Template with call outs to get data. (eg PSP) 2. Psuedo code executed as part of Template will call outs to get data. (eg Cheetah) 3. DOM like object manipulated from outside by Python code (eg HTMLTemplate) 4. Template execution populates fields in template from prebuilt dictionary. 5. Markup is embedded within actual Python code. What sort of system do you prefer to work with? PHP can be likened to 1 and 2. Some system have a cleaner conceptual seperation of view from controller (code to populate it), eg., HTMLTemplate, thus allowing third party web site design programs to still be used. Graham
|