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

Stefan Hornburg (Racke) racke at linuxia.de
Fri Oct 5 15:44:05 CEST 2012


On 10/04/2011 04:55 PM, Alexis Sukrieh wrote:
> 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
>

OK, that was indeed fairly easy:

https://github.com/racke/Template-Flute/commit/87c3a73b0f0c2a4c8cbeb750c42a5f7077809c12

Regards
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the Dancer-users mailing list