- COPYRIGHT AND LICENSE
Dancer2::Core::Role::Template - Role for template engines
Any class that consumes this role will be able to be used as a template engine under Dancer2.
In order to implement this role, the consumer must implement the method
render. This method will receive three arguments:
The name of the template engine (e.g.: Simple).
The charset. The default value is UTF-8.
The default file extension. If not provided, tt is used.
Path to the directory containing the views.
Path to the directory containing the layouts.
Contains the engine.
Returns the full path to the requested view.
Returns the full path to the requested layout.
Render the layout with the applied tokens
Dancer Core Developers
This software is copyright (c) 2014 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.