---
name: "Text::README"
section: "3pm"
platform: "linux"
package: "libtext-hogan-perl"
version: "1.04-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Text::README"
---

# Text::README(3pm)

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

## NAME

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

## DESCRIPTION

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\>.

## SYNOPSIS

```
    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.

## TEMPLATE FORMAT

The template format is documented in [*mustache*(5)](/mustache/5.md) \<https://mustache.github.io/mustache.5.html\>.

## AUTHOR

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

Alex Balhatchet (alex@balhatchet.net)
