[dancer-users] Dancer2 equivalent sought

Jeff Boes jeff at endpoint.com
Tue May 21 15:42:35 BST 2013


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


More information about the dancer-users mailing list