sorry I phrased the question so poorly, to be honest,
ultimately I wanted to know if i could replace all the contents
of layout.html without breaking things. (there's a lot of stuff in there)
I have my own layout file that I would like to use, and the {{include}}
seems like what I needed to know.

but the reason I asked how {{extend}} works
is because I have a main div that I would
like the new un-inherited content to go to
like, I don't want it to start writing at the footer :/
and I'm not sure if extend will work out of the box
in this case.

Is there a special format that templates should conform to?

On Sunday, July 15, 2012 9:44:30 AM UTC-4, Pystar wrote:
>
> 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.
>>
>

Reply via email to