Text::Hogan::Template3pm
Represent and render compiled templates
Usage
Use Text::Hogan::Compiler to create Template objects.
Then call render passing in a hashref for context.
use Text::Hogan::Compiler;my $template = Text::Hogan::Compiler->new->compile("Hello, {{name}}!");say $template->render({ name => $_ }) for (qw(Fred Wilma Barney Betty));
Optionally takes a hashref of partials.
use Text::Hogan::Compiler;my $template = Text::Hogan::Compiler->new->compile("{{>hello}}");say $template->render({ name => "Dino" }, { hello => "Hello, {{name}}!" });
Version
version 2.03
Releases
5 releases since Debian 9 (Stretch); the text changed 3 times.