Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - schultyy/Mustache.ex: Mustache templates for Elixir

Mustache templates for Elixir. Contribute to schultyy/Mustache.ex development by creating an account on GitHub.

Visit SiteGitHub - schultyy/Mustache.ex: Mustache templates for Elixir

GitHub - schultyy/Mustache.ex: Mustache templates for Elixir

Mustache templates for Elixir. Contribute to schultyy/Mustache.ex development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

Mustache

Module Version Hex Docs Total Download License Last Updated

Minimal templating with {{mustaches}} in Elixir - http://mustache.github.com/

Prerequisites

  • Elixir 1.x

Installation

In your mix.exs, add Mustache as dependency:

defp deps do
  [{:mustache, "~> 0.5.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

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 file for more details.

Elixir Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.