[Dancer-users] defining a variable in a template that the layout can read

Brian E. Lozier brian at massassi.com
Thu Mar 10 16:39:22 CET 2011


I realized that the only user-visible strings that are in my dancer
perl code are the titles for pages.  It's because I do stuff like
this:

template 'foo.tt', { title => 'My Title' };

Is there a way to define title in foo.tt such that the layout template
can see it?


More information about the Dancer-users mailing list