ambs wrote:
Hello.
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', }; };
Try template 'index', { sidebar => 'bar' };
But the template is, still, empty. I am not sure where to debug this.. any hint will be welcome :) Alberto _______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-- Puneet Kishor http://punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Fellow http://creativecommons.org/about/people/fellows#puneetkishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu --------------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ===========================================================================