crustache v2.4.4

{{Mustache}} for Crystal 💎

crustache

crustache is the implementation of mustache logic-less templates.

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

test

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

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.

Contributing

  1. Fork it
  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

License

MIT © TSUYUSATO "MakeNowJust" Kitsune <make.just.on@gmail.com> 2015-2020

Contributors

Repository

crustache

Owner
Statistic
  • 82
  • 12
  • 3
  • 24
  • 0
  • about 1 month ago
  • July 10, 2015
License

MIT License

Links
Synced at

Mon, 15 Apr 2024 22:23:52 GMT

Languages