[Dancer-users] Dancer Noob => interpolating variables [Solved]
ambs
ambs+dancer at perl-hackers.net
Tue Dec 14 21:55:52 CET 2010
On 14/12/2010 20:35, 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',
> };
> };
>
> But the template is, still, empty.
> I am not sure where to debug this.. any hint will be welcome :)
I am running it under Fastcgi. An apache restart was needed. Probably a
good idea to stick to the standalone server while in development :)
Cheers
ambs
More information about the Dancer-users
mailing list