AMT Blog

Hogan.js – An Open Source compiler for the Mustache templating language

Hogan.js is an open source compiler for the Mustache templating language, written to meet three templating library requirements: good performance, standalone template objects, and a parser API. It’s a 2.5k JS templating engine developed at Twitter.

Features of Hogan.js:

  • It is fast.
  • It 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.
  • It exposes scan and parse methods. These can be useful for pre-processing templates on the server.

Hogan.js is available on GitHub under the Apache License v2.0.

Read more…

Like what we post? Share your thoughts on the comments below. If you wish to get regular updates on what we post, do subscribe to our RSS Feed.

Filed under: JavaScript Open Source
To Posterous, Love Metalab