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

My recommendation is to use response.my_variable only for those variables that are currently used by the layout.html:

response.title
response.keywords
response.description
response.flash
response.menu

This makes easy to build new layout.html files and swap them (I have a student working on it).

Moreover passing all other variables via return dict(...) makes it easier to build doctests.

© 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.