<commit_before># 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)

```text
                        __             __
  ____________  _______/ /_____ ______/ /_  ___
 / ___/ ___/ / / / ___/ __/ __ `/ ___/ __ \/ _ \
/ /__/ /  / /_/ (__  ) /_/ /_/ / /__/ / / /  __/
\___/_/   \__,_/____/\__/\__,_/\___/_/ /_/\___/
```

## Installation

Add it to `Projectfile`

```crystal
deps do
  github "MakeNowJust/crustache"
end
```

## 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

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](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'`)<commit_msg>Fix to use shards<commit_after># 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
development_dependencies:
  crake:
      github: MakeNowJust/crake
```

## 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

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](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'`)
{'fraction_non_alphanumeric': 0.1665446559297218, 'fraction_numerical': 0.006588579795021962, 'mean_word_length': 3.845744680851064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 12, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779687', 'n_tokens_mistral': 1014, 'n_tokens_neox': 964, 'n_words': 198}