[Dancer-users] Layouts

David Precious davidp at preshweb.co.uk
Sat Feb 26 13:40:48 CET 2011



"minimalist" <minimalist at lavabit.com> wrote:
>In the above situation the layout won't get changed.
>I think the layout setting should be bound to each route. When a new
>route
>registers it should know what layout was selected last. I think it will
>make
>more sense this way.

I think you need to be calling the layout keyword within the route it should apply to, or better, use the layout option when calling template as in:

    template 'foo', { foo => 'bar' }, { layout => 'layoutname' };
 
That would work. 


-- 
David Precious <davidp at preshweb.co.uk>
Sent from my phone so please excuse brevity / poor quoting style etc


More information about the Dancer-users mailing list