5 Oct
2012
5 Oct
'12
1:44 p.m.
On 10/04/2011 04:55 PM, Alexis Sukrieh wrote:
2011/10/4 Stefan Hornburg (Racke)<racke@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/87c3a73b0f0c2a4c8cbeb750c42a5... Regards Racke -- LinuXia Systems => http://www.linuxia.de/ Expert Interchange Consulting and System Administration ICDEVGROUP => http://www.icdevgroup.org/ Interchange Development Team