<commit_before>## Hogan.js - A mustache compiler.

[hogan.js](http://twitter.github.com/hogan.js/) is a compiler for the
[Mustache](http://mustache.github.com/) templating language. For information
on Mustache, see the [manpage](http://mustache.github.com/mustache.5.html) and
the [spec](https://github.com/mustache/spec).

## Basics

Hogan compiles templates to HoganTemplate objects, which have a render method.

    var data = {
      screenname: "dhg",
    };

    var template = Hogan.compile("Follow @{{screename}}.");
    var output = template.render(data);

    // prints "Follow @dhg."
    console.log(output);

## Features

Hogan is fast--try it on your workload.

Hogan has separate scanning, parsing and code generation phases. This way it's
possible to add new features without touching the scanner at all, and many
different code generation techniques can be tried without changing the parser.<commit_msg>Fixing first example in README.md by making variable names consistant.<commit_after>## Hogan.js - A mustache compiler.

[hogan.js](http://twitter.github.com/hogan.js/) is a compiler for the
[Mustache](http://mustache.github.com/) templating language. For information
on Mustache, see the [manpage](http://mustache.github.com/mustache.5.html) and
the [spec](https://github.com/mustache/spec).

## Basics

Hogan compiles templates to HoganTemplate objects, which have a render method.

    var data = {
      screenName: "dhg",
    };

    var template = Hogan.compile("Follow @{{screenName}}.");
    var output = template.render(data);

    // prints "Follow @dhg."
    console.log(output);

## Features

Hogan is fast--try it on your workload.

Hogan has separate scanning, parsing and code generation phases. This way it's
possible to add new features without touching the scanner at all, and many
different code generation techniques can be tried without changing the parser.
{'fraction_non_alphanumeric': 0.11286919831223628, 'fraction_numerical': 0.0010548523206751054, 'mean_word_length': 3.9659685863874348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6212112', 'n_tokens_mistral': 552, 'n_tokens_neox': 529, 'n_words': 198}