Hi NikG,

I do not see any "current form" way from your example.

In the first one you are using the usual h1 tag from html where you
add some python code in braces (just strings in this case but you
could have any python code here).

In the second one you are using the H1 web2py helper to get the same
result. As helpers are not strict html code but python facilities
offered by web2py, you have to put them inside braces.

In short they are exactly the same just different syntax: you can use
any of them or mix them in a view without problems.

Hope this answers your doubts.

carlo

On 22 Mag, 14:44, NikG <[email protected]> wrote:
> Hi all.
>
> from the manual
> <h1>Hello {{=session.visitor_name or "anonymous"}}</h1>
>
> current form
> {{=H1('Hello ', session.visitor_name or 'anonynous')}}
>
> Is there any (newbie friendly) guide I can read about these kind of
> changes?
>
> I like the current cleaner looking structure but it gets confusing
> when you try out the examples using the old form, though they work.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to