Crystal HTML
Latest commit 5dda11e Dec 25, 2016 @MakeNowJust Refactor
Permalink
Failed to load latest commit information.
spec Update specs Nov 23, 2016
src Refactor Dec 25, 2016
.gitignore Reduce gitignore Nov 26, 2016
.gitmodules add submodule for testing Jul 10, 2015
.travis.yml Fix language to crystal Jul 15, 2015
CHANGELOG.md Release v2.3.0 Nov 24, 2016
LICENSE crystal init and fix README.md Jul 8, 2015
README.md Fix shard name Feb 13, 2016
shard.yml Release v2.3.0 Nov 24, 2016

README.md

crustache

crustache is the implementation of mustache logic-less templates.

This library implemated mustache's spec v1.1.2+λ.

travis-ci.org docrystal.org

Installation

Add this to your application's shard.yml:

dependencies:
  crustache:
      github: MakeNowJust/crustache

Usage

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!

Development

This library's specs are put in spec directory. They can run by crystal spec ./spec/spec.cr command.

Contributing

  1. Fork it (https://github.com/MakeNowJust/crustache/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors