AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
No, because template inhertitance is not a well defined concepts and eventually causes problems. Web2py can do this: **layout.html** <html><body> {{include}} <!-- must come before the two blocks below --> whatever html {{sidebar()}} whatever html {{maincontent()}} whatever html </body></html> **myview.html** {{extend 'layout.html'}} {{def sidebar():}} <h1>This is the sidebar</h1> {{return}} {{def maincontent():}} <h1>This is the maincontent</h1> {{return}}
© 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.