<commit_before>## EEx2Slime

[![Gem Version](https://badge.fury.io/rb/eex2slime.svg)](https://badge.fury.io/rb/eex2slime)

Script for converting EEx templates to [Slime](http://slime-lang.com). Slime is a lightweight template language.

## Usage

You may convert files using the included executable `eex2slime`:

```bash
$ gem install eex2slime

$ eex2slime foo.html.eex                   # outputs to foo.html.slime by default
$ eex2slime foo.html.eex bar.html.slime    # outputs to bar.html.slime
$ eex2slime foo.html.eex -                 # outputs to stdout
$ cat foo.eex | eex2slime                  # input from stdin, outputs to stdout
$ eex2slime dir/                           # convert all .eex files recursively
$ eex2slime --delete dir/                  # delete .eex files after convertion. Be sure you have a backup!
```

Alternatively you could use the following API:

```ruby
require 'eex2slime'
EEx2Slime.convert('path/to/file')
EEx2Slime.convert_string('<nav class="navbar"></nav>')
```

## Installation

    gem install eex2slime
<commit_msg>add CI badge [ci skip]<commit_after>## EEx2Slime

[![Gem Version](https://badge.fury.io/rb/eex2slime.svg)](https://badge.fury.io/rb/eex2slime)
[![Build Status](https://travis-ci.org/hedgesky/eex2slime.svg?branch=master)](https://travis-ci.org/hedgesky/eex2slime)

Script for converting EEx templates to [Slime](http://slime-lang.com). Slime is a lightweight template language.

## Usage

You may convert files using the included executable `eex2slime`:

```bash
$ gem install eex2slime

$ eex2slime foo.html.eex                   # outputs to foo.html.slime by default
$ eex2slime foo.html.eex bar.html.slime    # outputs to bar.html.slime
$ eex2slime foo.html.eex -                 # outputs to stdout
$ cat foo.eex | eex2slime                  # input from stdin, outputs to stdout
$ eex2slime dir/                           # convert all .eex files recursively
$ eex2slime --delete dir/                  # delete .eex files after convertion. Be sure you have a backup!
```

Alternatively you could use the following API:

```ruby
require 'eex2slime'
EEx2Slime.convert('path/to/file')
EEx2Slime.convert_string('<nav class="navbar"></nav>')
```

## Installation

    gem install eex2slime

{'fraction_non_alphanumeric': 0.1181697023545091, 'fraction_numerical': 0.014215904042647711, 'mean_word_length': 3.00711743772242, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1232900', 'n_tokens_mistral': 793, 'n_tokens_neox': 753, 'n_words': 198}