Some of the information here may be outdated, please check the book instead
[edit]

Yes. Views can extend and include other views in a tree like structure. The root of the tree is what we call a layout view. It is just an HTML file that you can edit as any other view using the administrative interface.

Example of view:

{{extend 'layout.html}}
<h1>Title</h1>
{{include 'footer.html'}}

A layout file must be something like

<html><head>....</head>
<body>
{{include}}
</body>
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.