Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An attempt to compile Mustache templates to Haskell code

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 benchmark
Octocat-spinner-32 example
Octocat-spinner-32 .gitignore
Octocat-spinner-32 COPYING
Octocat-spinner-32 Makefile
Octocat-spinner-32 ParseRecords.hs
Octocat-spinner-32 README
Octocat-spinner-32 Setup.hs
Octocat-spinner-32 mustache2hs.cabal
Octocat-spinner-32 mustache2hs.hs
This utility takes in Haskell records (single data constructor only)
and a list of mustache template and record name pairs, and generates
Haskell code for functions that take an escape function and one of
the records, and returns a 'Data.Text.Lazy.Builder.Builder'.

This allows most records to be used as context for rendering a
template, and gives GHC the ability to typecheck the template's use of
record fields at compile time.  It also means your application does
not need to be reading template files off disk in production.

Usage example:

> mustache2hs -m Records.hs main.mustache SomeRec sub.mustache OtherRec

A full example is in the git repository.
Something went wrong with that request. Please try again.