[dancer-users] Dancer2 equivalent sought
Alexis Sukrieh
sukria at sukria.net
Tue May 21 15:45:51 BST 2013
By heart, so forgive me if this does not pass, but I think it does:
my $template_engine = engine('template');
And you go from there
Good luck!
2013/5/21 Jeff Boes <jeff at endpoint.com>
> What is the Dancer2 equivalent to the following?
>
> my $html = Dancer::Template->engine->apply_renderer($view, $vars);
>
> This is happening outside of a route handler, so my first attempt:
>
> my $html = template($view, $vars);
>
> incurred this:
>
> Function 'template' must be called from a route handler
>
> --
> Jeff Boes <><
> jeff at endpoint.com
> 269-408-0811
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130521/dc330a5b/attachment.htm>
More information about the dancer-users
mailing list