[Python-Dev] Re: PEP 292 and templating (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Wed Dec 10 03:34:47 EST 2003


Raymond Hettinger wrote:

The first would be Barry's simple substitutions using only $name or ${name} for templates exposed to the user.

The second would extend the first with Cheetah style dotted names for more advanced templates controlled by the programmer.

time for a "retools" module, perhaps?

some code snippets to consider:

http://www.effbot.org/zone/re-sub.htm http://www.effbot.org/zone/template-language.htm

a collection of "cookbook REs" would also be nice. any takers?



More information about the Python-Dev mailing list