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