12 messages in com.googlegroups.pylons-discussRe: Layouts in pylons
FromSent OnAttachments
Chad20 Feb 2008 23:22 
Contact 4221 Feb 2008 05:54 
Chad21 Feb 2008 13:28 
Mike Orr21 Feb 2008 13:31 
Contact 4221 Feb 2008 13:59 
Contact 4221 Feb 2008 14:03 
Chad22 Feb 2008 08:23 
Philip Cooper22 Feb 2008 10:44 
Ben Bangert22 Feb 2008 10:50 
Chad24 Feb 2008 01:03 
Ben Bangert24 Feb 2008 10:42 
Contact 4226 Feb 2008 05:18 
Subject:Re: Layouts in pylons
From:Ben Bangert (ben-@public.gmane.org)
Date:02/24/2008 10:42:31 AM
List:com.googlegroups.pylons-discuss

On Feb 24, 2008, at 1:04 AM, Chad wrote:

This maps any request with the path /secure to a controller. This controller has a html layout associated with it. We then take the html from the response and insert it into the layout. This functionality allows us to add layouts to paths in a flexible manor. Since the layout is associated with a controller you can have that controller execute some code before rendering.

You could make a __before__ function in your controller that sets up the c.layout variable, then use that to inherit in the template. That'd give you controller specific layouts.

Cheers, Ben