[Dancer-users] dancer2's prototype is there, feedback needed

Alexis Sukrieh sukria at sukria.net
Tue Oct 4 16:55:32 CEST 2011


2011/10/4 Stefan Hornburg (Racke) <racke at linuxia.de>:
> On 09/30/2011 06:47 AM, sukria wrote:
>
> How do I port a template engine to dancer2? Just implementing the context
> method?

You just have to consume the role Dancer::Core::Role::Template, and
then, implement the render method.

See Toolkit.pm, it's a good example of how to do it:
https://github.com/sukria/dancer2/blob/master/lib/Dancer/Template/Toolkit.pm


More information about the Dancer-users mailing list