I wrote a post to the google web2py-users group on this subject. This WordPress post will be my log of the work i am doing on this subject.
Here is a copy of my original web2py-users group post.
Dear web2py Forum,
Often i find myself making View pages that are NOT derived from layout.html and yet wanting to include some aspects of its capabilities.
I thought the web2py “Component” concept might help to deliver a modular approach.
My initial thoughts would be to pair small CSS files and HTML Component definitions for the following:
- left sidebar
- right sidebar
- flash response
while maintaining a list of dependencies among them.
Has anyone thought about this granular approach before?
I would not want to use a Wizard for this, because in my experience, the generated code is unfamiliar to me and difficult to customize.
Thanks for a GREAT framework.
Love and peace,
1. i looked up web2py component
By def it seems that components
communicate with the component controller function via Ajax
Therefore the list of dependencies must contain ajax stuff.
2. add a new component to list:
navbar – is a complex component containing both menu and auth login stuff