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 {{=}}