On Jan 7, 9:25 am, DenesL <denes1...@yahoo.ca> wrote:
> > parsing instead of using regular expressions.
>
> I was under the impression that you were using regex for speed, is
> parsing faster?.

I benchmarked it. In this case makes no difference.

>
> > 2) you use {{,}} inside strings as in
> > {{="hello {{ world }}" }} without running into trouble.
>
> Simpler = better.

agree. what is "simpler" in this case?

> > 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.
>
> Just to clarify, my suggestion was to able to copy/paste the code
> without the need to split it up with braces and pass statements, while
> at the same time interpret =x as response.write(x) if = was the first
> non-blank char in a line.
> Testing tells me that the new template.py removes the need for braces
> inside the code but still requires 'pass', correct?.

correct, this is only part of your patch.

Anyway, I ma still not happy with template.py....

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