[Dancer-users] Dancer Noob => interpolating variables

ambs ambs+dancer at perl-hackers.net
Tue Dec 14 21:35:37 CET 2010


I am starting with dancer. Installed, run dancer -a, and changed a 
template to include some variables:

   <div><% sidebar %></div>

And in the rule, I have

get '/' => sub {
     template 'index' => {
                          'sidebar' => 'bar',

But the template is, still, empty.
I am not sure where to debug this.. any hint will be welcome :)

More information about the Dancer-users mailing list