Template for CGI

Oleg Broytmann phd at phd.russ.ru
Wed Nov 3 03:23:11 EST 1999


On Tue, 2 Nov 1999, Glenn Kidd wrote:
> I am a newbie to Python and I have a question.  I want a CGI script that
> will read a file template and replace certain words with variables.  Ii
> tried putting the variable names in the file but it is read as palin text.
> Is there a way to embed variables into a teplate or a replace function in
> Python?  Thank you for any help you give.

   Go to www.zope.org and download ZTemplates. Learning ZTemplates is
somewhat hard (not much, really), but it worth learning. After ZTemplates
you will NEVER need anything else! :)
   After you download it, I can send you some examples how to use it.

Oleg.
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd at phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list