Doh, I cleverly read the code but missed the first half of {%$tokens, content => $content}) Thanks much. --bob 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@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@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users