NAME
Dancer2::Template::Handlebars - Dancer2 wrapper for Handlebars templating engine
VERSION
version 1.00
SYNOPSIS
in your Dancer2 app config.yml:
template: "handlebars"
...and if you want to add custom helpers:
engines:
handlebars:
helpers:
- MyApp::HandlebarsHelpers
HELPERS
You can create custom modules full of helpers to use in your Handlebars templates. For more details on creating these, see Dancer2::Template::Handlebars::Helpers.
Handlebars comes with helpers with
, each
, if
, and unless
.
GRATEFUL THANKS
...to Yanick, for his prior work on Dancer::Template::Handlebars and Dancer2::Template::Mustache. Most all of the code you see in this module is his work, or very, very close to his original code; I merely remixed it, and got tests working for my own purposes.
SEE ALSO
SUPPORT
You can find this documentation for this module with the perldoc command.
perldoc Dancer2::Template::Handlebars
You can also look for information at:
MetaCPAN
Gitlab
Gitlab issues tracker
https://gitlab.com/GeekRuthie/dancer2-template-handlebars/-/issues
CPAN Ratings
AUTHOR
D Ruth Holloway <ruth@hiruthie.me>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by D Ruth Holloway.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.