Dancer2::Core::Role::Template - Role for template engines
version 0.05
This role provides methods and attributes needed for working with template.
All Dancer's templates engine should consume this role, and they need to implement a render method. This method will receive three arguments:
render
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) 2013 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.
To install Dancer2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2
CPAN shell
perl -MCPAN -e shell install Dancer2
For more information on module installation, please visit the detailed CPAN module installation guide.