[web2py] Re: RFC: New design for {{include file.html}} in views
Yes this is a much better design pattern. I will just make a file of these helpers and include them all at once. Thanks massimo! On Sep 9, 10:32 pm, Massimo Di Pierro wrote: > Why not do: > > in friend_selector.html > > {{def selector(id=None):}} > > >
[web2py] Re: RFC: New design for {{include file.html}} in views
Why not do: in friend_selector.html {{def selector(id=None):}} {{return}} and in the extending view {{include 'friend_selector.html'}} {{selector(id='main-access')}} This is already supported and allows to defin