<div dir="ltr">By heart, so forgive me if this does not pass, but I think it does:<div><br></div><div>  my $template_engine = engine(&#39;template&#39;);<div><br></div><div style>And you go from there</div></div><div style>
<br></div><div style>Good luck!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/21 Jeff Boes <span dir="ltr">&lt;<a href="mailto:jeff@endpoint.com" target="_blank">jeff@endpoint.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is the Dancer2 equivalent to the following?<br>
<br>
my $html = Dancer::Template-&gt;engine-&gt;apply_renderer($view, $vars);<br>
<br>
This is happening outside of a route handler, so my first attempt:<br>
<br>
my $html = template($view, $vars);<br>
<br>
incurred this:<br>
<br>
Function &#39;template&#39; must be called from a route handler<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jeff Boes &lt;&gt;&lt;<br>
<a href="mailto:jeff@endpoint.com">jeff@endpoint.com</a><br>
<a href="tel:269-408-0811" value="+12694080811">269-408-0811</a><br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br>
</font></span></blockquote></div><br></div>