NAME

Dancer::Template::HtmlTemplate - HTML::Template wrapper for Dancer

DESCRIPTION

This class is an interface between Dancer's template engine abstraction layer and the HTML::Template module.

In order to use this engine, use the template setting:

template: html_template

This can be done in your config.yml file or directly in your app code with the set keyword.

Since HTML::Template uses different syntax to other template engines like Template::Toolkit, for current Dancer versions the default layout main.tt will need to be updated, changing the [% content %] line to:

<!--tmpl_var name="content"-->

or

<TMPL_VAR name="content">

Future versions of Dancer may ask you which template engine you wish to use, and write the default layout appropriately.

Also, currently template filenames should end with .tt; again, future Dancer versions may change this requirement.

SEE ALSO

Dancer, HTML::Template

AUTHOR

David Precious, <davidp@preshweb.co.uk>

CONTRIBUTING

This module is developed on Github at:

http://github.com/bigpresh/Dancer-Template-HtmlTemplate

Feel free to fork the repo and submit pull requests!

LICENSE

This module is free software and is released under the same terms as Perl itself.