4 Oct
2011
4 Oct
'11
2:55 p.m.
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