[Dancer-users] Template vars in the layout

Robert Olson bob at rdolson.org
Sat Mar 27 20:32:22 UTC 2010

Doh, I cleverly read the code but missed the first half of

	{%$tokens, content => $content})

Thanks much.


On Mar 27, 2010, at 3:26 PM, sawyer x wrote:

> I'm actually at the movies now but I wanted to take a sec to say any  
> variable works in the layout template :)
>> On Mar 27, 2010 10:49 PM, "Robert Olson" <bob at rdolson.org> wrote:
>> Hi -
>> Just getting started with Dancer, so this might be an obvious  
>> question.
>> I would like to be able to put per-route information into the  
>> layout template (for instance, current-page flagging in a  
>> navigation box, or setting the page title).
>> Since it appears the only variable that is settable in the layout  
>> template is "content", my guess is that to do what I want I would  
>> need to shift all of that stuff into the per-page templates (or  
>> into common templates that are included into the per-page templates).
>> Am I reading this correctly?
>> Thanks,
>> --bob
>> _______________________________________________
>> Dancer-users mailing list
>> Dancer-users at perldancer.org
>> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20100327/5372b1bc/attachment.htm>

More information about the Dancer-users mailing list