I like Chameleon. But I dont like doing layout through macros. So I started 
using "wrapper" feature of Pyramid. You just do "layout" view.
Then in view_config you specify wrapper="my_layout_view". Now in your view 
template there is not any mention of layout, it is just template. And now 
layout has it's own template(it even can be another template lang). In 
your_layout_view you return 
{'content':request.wrapped_response.unicode_body}, and in layout_template 
you insert *content* where you want.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to