Is there interest in having a templating module with two functions one for simple substitutions and the other with more tools? 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. Raymond Hettinger
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? </F>
Raymond Hettinger wrote:
Is there interest in having a templating module with two functions one for simple substitutions and the other with more tools?
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.
I am down with the first and basically okay with the second. Regardless I would like to see a module with helpful string manipulation functions. -Brett
participants (3)
-
Brett
-
Fredrik Lundh
-
Raymond Hettinger