Skip to content
Mustache templates for Elixir
Elixir
Branch: master
Clone or download

Latest commit

schultyy Merge pull request #13 from pylon/deep-nesting
Support deeply nested paths in templates
Latest commit a1314b2 Jan 4, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial commit Apr 4, 2015
lib Support deeply nested paths in templates Oct 5, 2017
test Support deeply nested paths in templates Oct 5, 2017
.gitignore add doc directory to gitignore Jan 29, 2017
.travis.yml Update .travis.yml to build on more Elixir versions Jan 30, 2017
LICENSE Create LICENSE Apr 12, 2015
README.md Update Hex version in README Sep 4, 2017
mix.exs Increase version number Jan 29, 2017
mix.lock add mix.lock Jan 29, 2017

README.md

Mustache

Build Status

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.3.0"}]
end

Example

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:true

Run all tests:

$ mix test
You can’t perform that action at this time.