README.md
Mustache
========
[](https://hex.pm/packages/mustache)
[](https://hexdocs.pm/mustache/)
[](https://hex.pm/packages/mustache)
[](https://github.com/schultyy/Mustache.ex/blob/master/LICENSE.md)
[](https://github.com/schultyy/Mustache.ex/commits/master)
Minimal templating with {{mustaches}} in Elixir - [http://mustache.github.com/](http://mustache.github.com/)
Prerequisites
=============
- Elixir 1.x
Installation
============
In your `mix.exs`, add Mustache as dependency:
```elixir
defp deps do
[{:mustache, "~> 0.5.0"}]
end
```
Example
=======
```elixir
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](https://github.com/mustache/spec).
Run currently passing tests:
```bash
$ mix test --exclude pending:true
```
Run all tests:
```bash
$ mix test
```
Copyright and License
=====================
Copyright (c) 2023 Jan Schulte
This work is free. You can redistribute it and/or modify it under the
terms of the MIT License. See the [LICENSE.md](./LICENSE.md) file for more details.