I am not too sure if I get your question but I would try to answer it the
best way I can. In your base template which is "layout.html" there should
be a web2py directive contained within that html file i.e. {{include}},
when you add this directive i.e. {{extend "layout.html"}} in other html
files that extend or build upon the layout file, you are telling web2py to
include all the contents of the child template i.e. the template extending
the layout file into the layout file.
I pray that explanation wasn't too confusing?
On Sunday, July 15, 2012 10:50:24 AM UTC+1, pylix wrote:
>
> hello,
>
> I'm wondering what exactly happens when you extend from an html file such
> as layout.html
> i.e {{extend 'layout.html'}}
>
> I have my own html/css/js file combo that I would like to use as a base
> for my small web app, but I’m unsure of the best way to go about it.
>