Text::Hogan(3pm)

Text::Hogan3pm

A mustache templating engine statement-for-statement cloned from hogan.js

Usage

    use Text::Hogan::Compiler;
    my $text = "Hello, {{name}}!";
    my $compiler = Text::Hogan::Compiler->new;
    my $template = $compiler->compile($text);
    say $template->render({ name => "Alex" });

See Text::Hogan::Compiler and Text::Hogan::Template for more details.

Version

version 2.03

Overview

Text::Hogan is a statement-for-statement rewrite of hogan.js <http://twitter.github.io/hogan.js/> in Perl.

It is a mustache <https://mustache.github.io/> templating engine which supports pre-compilation of your templates into pure Perl code, which then renders very quickly.

It passes the full mustache spec <https://github.com/mustache/spec>.

Template format

The template format is documented in mustache(5) <https://mustache.github.io/mustache.5.html>.

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11
  4. 12–13

Authors

Started out statement-for-statement copied from hogan.js by Twitter!

Initial translation by Alex Balhatchet ([email protected])

Further improvements from:

Ed Freyfogle Mohammad S Anwar Ricky Morse Jerrad Pierce Tom Hukins Tony Finch Yanick Champoux

From libtext-hogan-perl 2.03-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.