You can also build a layout by using {{include 'some_fragment.html'}} as 
well as template 
blocks<http://web2py.com/books/default/chapter/29/05/the-views#Blocks-in-views>.
 
You could have a basic layout that defines several (possibly empty) blocks, 
and then have various additional layouts that extend the basic layout and 
fill in the blocks as needed. 

Anthony

On Saturday, November 9, 2013 1:52:49 PM UTC-5, JoeCodeswell wrote:
>
> 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: 
>
>    - menu
>    - login/register
>    - left sidebar
>    - right sidebar
>    - footer
>    - ajax
>    - flash response
>    - mobile
>    - responsive
>    
> 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,
>
> Joe
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to