There is a new template.py in trunk. It is major rewrite that does
parsing instead of using regular expressions.
Advantages:

0) much cleaner and more readable
1) you get better parsing errors (can still be improved)
2) you use {{,}} inside strings as in
{{="hello {{ world }}" }} without running into trouble.
So far this was not allowed because web2py would have tried to execute
'"hello {{ world '.
3) you can do
<html>
{{
for i in range(10):
=i
pass
}}
</html>
and =i is interpreted as response.write(i).
This was suggested by Denes.

Please give it a try. It should not break anything but let me know.

Massimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to