crustache is the implementation of mustache logic-less templates.
This library implemated mustache's spec v1.1.2+λ.
Add this to your application's shard.yml
:
dependencies:
crustache:
github: MakeNowJust/crustache
require "crustache"
# Parse a mustache template
template = Crustache.parse "Hello {{Name}} World!"
# Make a model
model = {"Name" => "Crustache"}
# Render!
puts Crustache.render template, model
#=> Hello Crustache World!
NOTE: Please run git submodule update --init
before running spec.
This library's specs are put in spec
directory.
They can run by crystal spec
command.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
MIT © TSUYUSATO "MakeNowJust" Kitsune <[email protected]> 2015-2020
- @MakeNowJust TSUYUSATO Kitsune - creator, maintainer