Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schultyy/Mustache.ex
Mustache templates for Elixir
https://github.com/schultyy/Mustache.ex
elixir mustache
Last synced: about 2 months ago
JSON representation
Mustache templates for Elixir
- Host: GitHub
- URL: https://github.com/schultyy/Mustache.ex
- Owner: schultyy
- License: mit
- Created: 2015-04-05T20:33:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T20:28:58.000Z (9 months ago)
- Last Synced: 2024-04-15T22:29:23.777Z (2 months ago)
- Topics: elixir, mustache
- Language: Elixir
- Size: 56.6 KB
- Stars: 56
- Watchers: 5
- Forks: 12
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-elixir - mustache - Mustache templates for Elixir. (Templating)
- freaking_awesome_elixir - Elixir - Mustache templates for Elixir. (Templating)
- awesome-elixir - mustache - Mustache templates for Elixir. (Templating)
- fucking-awesome-elixir - mustache - Mustache templates for Elixir. (Templating)
README
Mustache
========[![Module Version](https://img.shields.io/hexpm/v/mustache.svg)](https://hex.pm/packages/mustache)
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/mustache/)
[![Total Download](https://img.shields.io/hexpm/dt/mustache.svg)](https://hex.pm/packages/mustache)
[![License](https://img.shields.io/hexpm/l/mustache.svg)](https://github.com/schultyy/Mustache.ex/blob/master/LICENSE.md)
[![Last Updated](https://img.shields.io/github/last-commit/schultyy/Mustache.ex.svg)](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.