[Dancer-users] Accessing template variables inside Wrapper (layout)
Deepak Gulati
deepak.gulati at gmail.com
Thu Dec 30 18:14:01 CET 2010
Hi Folks,
Template toolkit allows me to set variables inside a template and then
access them from the wrapper:
http://www.template-toolkit.org/docs/manual/Config.html#section_WRAPPER
This doesn't seem to when using Template Toolkit with Dancer. e.g. in
the index.tt that dancer generates, I added:
<% foo = "bar" %> on the first line
and tried to access it from main.tt
<title><% foo %></title>
But it comes out as blank.
Is dancer doing something special with the wrapper or am I doing
something wrong?
Thanks,
Deepak
More information about the Dancer-users
mailing list