Skip to content

newaperio/Mustache.ex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mustache templates for Elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%