Nice I never tried that, that will be very helpful on some tasks. On Thu, Mar 1, 2012 at 12:06 AM, Pedro Pereira <pedrompere...@gmail.com>wrote:
> Hi Bruno, it sure definitely helps...thanks a lot!! > > > On Thu, Mar 1, 2012 at 01:55, Bruno Rocha <rochacbr...@gmail.com> wrote: > >> Dont know if it helps, but note that you can enclose HTML as a function. >> >> views/my_html_functions.html >>> >>> {{def my_html_block(args):}} >>> {{if args.....:}} >>> <tag></tag> >>> {{pass}} >>> {{=DIV(UL(LI()))}} >>> <tag></tag> >>> <tag></tag> >>> <tag></tag> >>> {{return}} >>> >> >> >> views/anyfile.html >>> >>> {{extend "layout.html"}} >>> {{include "my_html_functions.html"}} >>> >>> <div> >>> {{my_html_blog(args)}} >>> </div> >>> >> >> >> Note that when calling that function you do not need to use {{=}} >> > > -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.warplydesigned.com http://www.fitnessfriendsfinder.com