20 Oct
2011
20 Oct
'11
4:22 p.m.
On 20/10/11 17:13, Mr. Puneet Kishor wrote:
On Oct 20, 2011, at 10:47 AM, Naveed Massjouni wrote:
I think he was saying that you might have code in your apps such as: set layout => 'foo'; This would set the layout globally and might have been the cause of your issue.
In that case, no, I never used `set layout => 'foo'` anywhere in my code. Only within specific routes, I used `layout 'foo'`.
But in your original example you had this:
get '/*?' => sub { .. debug "using layout main"; template 'index', \%template_opts; }
That will end up with whatever layout the previous request set. The layout is *not* per-request (unless you add it to the template call). -- Richard Huxton Archonet Ltd