I thought that after the "=" I could only write one string/variable/ function with string output which is wrapped in write... Anything else I could put in non-python block...
Never mind. I can live with what you choose as solution :) Just I say it was working before :-o I will stay with web2py anyway :-D On márc. 5, 03:22, Jonathan Lundell <jlund...@pobox.com> wrote: > On Mar 4, 2011, at 6:03 PM, villas wrote: > > > > > On Mar 4, 10:22 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > >> I don't think you should have code included in a {{= block. > > > +1 Explicit is better > > > {{if abc:}} > > {{=xyz}} > > {{pass}} > > > Yes, there are extra brackets, but no one's going to have a problem > > with that. > > That would continue to work regardless. > > Right now we have two rules, and it's hard to explain why. > > {{=abc > abc = "123}} > > ...fails. But > > {{abc = "123" > =abc}} > > ... is fine. And so is > > {{abc = "123" > =abc > abc = "456"}} > > {{pass > =abc > pass}} > > is fine. But > > {{=abc > pass}} > > ...is not. > > That's a strange set of rules, if you ask me. And confusing, as we've already > seen, especially since the error message is not helpful.