Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/truqu/elm-mustache

Mustache templates in Elm
https://github.com/truqu/elm-mustache

Last synced: 4 months ago
JSON representation

Mustache templates in Elm

Awesome Lists containing this project

README

        

# Elm-Mustache

An Elm library for mustache templates

## Usage

```elm
import Mustache

template : String
template =
"Hi, my name is {{ name }}.{{# show }} Show me!{{/ show }}"

evaluatedTemplate : String
evaluatedTemplate =
Mustache.render
[ Mustache.Variable "name" "John"
, Mustache.Section "show" True
]
template

-- evaluatedTemplate == "Hi, my name is John. Show me!"
```