14 Dec
2010
14 Dec
'10
8:40 p.m.
On 14/12/2010 20:37, Puneet Kishor wrote:
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' };
No, nothing (btw, the '=>' is just a comma, in Perl);