Dancer2::Template::Handlebars - Dancer2 wrapper for Handlebars templating engine
version 1.00
in your Dancer2 app config.yml:
template: "handlebars"
...and if you want to add custom helpers:
engines: handlebars: helpers: - MyApp::HandlebarsHelpers
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.
with
each
if
unless
...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.
http://handlebarsjs.com
Text::Handlebars
You can find this documentation for this module with the perldoc command.
perldoc Dancer2::Template::Handlebars
You can also look for information at:
MetaCPAN
https://metacpan.org/release/Dancer2-Template-Handlebars
Gitlab
https://gitlab.com/GeekRuthie/dancer2-template-handlebars
Gitlab issues tracker
https://gitlab.com/GeekRuthie/dancer2-template-handlebars/-/issues
CPAN Ratings
http://cpanratings.perl.org/d/Dancer2-Template-Handlebars
D Ruth Holloway <ruth@hiruthie.me>
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.
To install Dancer2::Template::Handlebars, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Template::Handlebars
CPAN shell
perl -MCPAN -e shell install Dancer2::Template::Handlebars
For more information on module installation, please visit the detailed CPAN module installation guide.