Mustache
Minimal templating with {{mustaches}} in Elixir - http://mustache.github.com/
Prerequisites
- Elixir 1.0.x
Installation
In your mix.exs, add Mustache as dependency:
defp deps do
[{:mustache, "~> 0.0.2"}]
endExample
Mustache.render("Hello, my name is {{name}}", %{name: "Alice"})Tests
The test folder contains tests showing the currently implemented feature set. The tests are taken from the mustache specs project https://github.com/mustache/spec.
Run currently passing tests:
$ mix test --exclude pending:trueRun all tests:
$ mix test