{{for i in range(40):
=i
pass}}
or
{{for i in range(40):}}{{=i}}{{pass}}
BUT
{{for i in range(40):
if i==0:
=0
else:
=i
pass
pass}}
Note no need to pass before else because would be obvious.
On Jul 22, 6:47 pm, Yarko Tymciurak <[email protected]> wrote:
> On Wed, Jul 22, 2009 at 6:07 PM, Alex Fanjul <[email protected]> wrote:
> > So you can put "=" wherever you want to spit out the html??? you are
> > keeping a lot of good trickssssss grrrrr ;-)
>
> .... the template language is just python; you use "pass" to unambiguate
> where in "normal" python you would un-indent.
> When you want output of a python expression to your page, use "=".
>
>
>
> > thanks
> > alex
>
> > El 22/07/2009 22:48, Yarko Tymciurak escribió:
>
> > sorry... that should have been:
>
> > On Wed, Jul 22, 2009 at 3:46 PM, Yarko Tymciurak <[email protected]>wrote:
>
> >> {{ for item in list:
> >> *=*TD(TR(item))
> >> }}
>
> >> just might look better than the alternative
>
> >> On Wed, Jul 22, 2009 at 3:31 PM, Julio <[email protected]> wrote:
>
> >>> This has came up countless of times, you'll find many supporters, mid-
> >>> grounds and opposers I believe html helpers have their place in web2py
> >>> and are good for say, prototyping and stuff, but the bottom line is
> >>> that you *can* create entire web2py apps without using them at all, as
> >>> in my case.
>
> >>> hth,
>
> >>> -- Julio
>
> >>> On Jul 22, 9:41 am, gillengam <[email protected]> wrote:
> >>> > Excuse me for my question. I'm not sure that it is good use HTML
> >>> > helpers. They are very powerful, but I'm afraid that they are no good
> >>> > for MVC architecture. I've seen that all framework use them, but I'm
> >>> > not sure that it's a good idea. I think to an HTML designer that don't
> >>> > know programming. I know that HTML helpers aren't required, but then I
> >>> > ask me which is their benefit in big projects (with programmers,
> >>> > designers, ...). I'd like to understand this. Can you help me?
>
> >>> > Thanks
>
> > --
> > Alejandro Fanjul Fdez.
> > [email protected]
> >www.mhproject.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---