Installation

# Add this to your shard.yml
dependencies:
  crustache:
    github: makenowjust/crustache
    version: ~> 2.4.4

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
TSUYUSATO Kitsune <make.just.on@gmail.com>

Dependencies

This version declares no dependencies.

README

# crustache

crustache is the implementation of __[mustache](https://mustache.github.io/)__ logic-less templates.

This library implemated [mustache's spec v1.1.2+λ](https://github.com/mustache/spec/tree/v1.1.2).

[![travis-ci.org](https://img.shields.io/travis/MakeNowJust/crustache.svg?style=flat-square)](https://travis-ci.org/MakeNowJust/crustache)
<!-- [![docrystal.org](http://www.docrystal.org/badge.svg)](http://www.docrystal.org/github.com/MakeNowJust/crustache) -->

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  crustache:
    github: MakeNowJust/crustache
```

## Usage

```crystal
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](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

## License

MIT
© TSUYUSATO "[MakeNowJust](https://quine.codes)" Kitsune <<make.just.on@gmail.com>> 2015-2020

## Contributors

- [@MakeNowJust](https://github.com/MakeNowJust) TSUYUSATO Kitsune - creator, maintainer