Printing Strings, un-parsed by Python

Ian Clarke I.Clarke at strs.co.uk
Mon Sep 6 08:40:37 EDT 1999


Look at the TemplateDocument class in HTMLgen.  It allows you to take a
HTML template and replace tags like {this} in the document with computed
values.  This has the advantage that a non-Python person can edit the
HTML templates without messing with the Python source code - it
separates the GUI (the HTML) from the engine that drives it (the Python
code).  The only potential problem there is the delay caused by loading
the (rather large) HTMLgen module, however it would be easy to re-write
a module that does what TemplateDocument does but without the rest of
the HTMLgen baggage.

Ian.

-- 
Ian Clarke                 "A subversive is anyone 
I.Clarke at strs.co.uk         who can out-argue
http://www.gnu.demon.co.uk/ their government"




More information about the Python-list mailing list