Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.2.3
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (32 sloc) 1.137 kb
# Hastache
Haskell implementation of [Mustache templates](http://mustache.github.com/)
## Installation
cabal update
cabal install hastache
## Usage
Read [Mustache documentation](http://mustache.github.com/mustache.5.html) for template syntax.
### Examples
#### Variables
{{#example}}variables{{/example}}
{{#runExample}}variables{{/runExample}}
With Generics
{{#example}}variablesGeneric{{/example}}
#### Lists
{{#example}}lists{{/example}}
{{#runExample}}lists{{/runExample}}
With Generics
{{#example}}listsGeneric{{/example}}
Another Generics version
{{#example}}listsGeneric.2{{/example}}
#### Functions
{{#example}}function{{/example}}
{{#runExample}}function{{/runExample}}
#### Monadic functions
{{#example}}monadicFunction{{/example}}
{{#runExample}}monadicFunction{{/runExample}}
#### Generics big example
{{#example}}genericsBig{{/example}}
{{#runExample}}genericsBig{{/runExample}}
#### More examples
* [Hastache test](https://github.com/lymar/hastache/blob/master/tests/test.hs)
* Real world example: [README.md file generator](https://github.com/lymar/hastache/blob/master/mkReadme.hs)
Jump to Line
Something went wrong with that request. Please try again.