Found the problem - or at least part of it. The regex for finding $a is
doing a negative look-behind so it won't match \$a. If $a occurs at
the very beginning of template string this look-behind isn't working
in 2.0, but is working in 2.1. This affects all the directives as well.
I'll see if there's a way around this.
tavis@lucy: ~/TemplateServer/TemplateServer > /usr/local/bin/python2.0
Python 2.0 (#8, Feb 22 2001, 15:15:58)
[GCC 2.95.2 19991024 (release)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> from Server import TemplateServer as TS
>>> print TS("$a $b",{'a':1, 'b':2})
$a 2
>>> print TS(" $a $b",{'a':1, 'b':2})
1 2
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel