<commit_before># Shift.js

> Standard Interface to the Node.js Template Engines.

## Install

``` bash
npm install shift
```

## Example

``` coffeescript
Shift     = require('shift')
mustache  = new Shift.Mustache()
mustache.render "{title}!", locals: title: "Hello World", (string) -> console.log(string) #=> "Hello World!"
```

or more formally:

``` coffeescript
engine    = new Shift.Jade
input     = fs.readFileSync("./spec/fixtures/views/jade.jade", "utf-8")
output    = fs.readFileSync("./spec/fixtures/views/jade.html", "utf-8")
engine.render input, (error, result) ->
  expect(result).toEqual output
```

## API

``` coffeescript
engine = new Shift.CoffeeScript
engine.render(string, options, callback)
```

## Engines

``` coffeescript
new Shift.CoffeeScript
new Shift.Ejs
new Shift.Haml
new Shift.Jade
new Shift.Less
new Shift.Markdown
new Shift.Mustache
new Shift.Stylus
new Shift.UglifyJS
new Shift.YuiCompressor
```

## Development<commit_msg>compressors<commit_after># Shift.js

> Standard Interface to the Node.js Template Engines.

## Install

``` bash
npm install shift
```

## Engines

``` coffeescript
new Shift.CoffeeScript
new Shift.Ejs
new Shift.Haml
new Shift.Jade
new Shift.Less
new Shift.Markdown
new Shift.Mustache
new Shift.Stylus
new Shift.UglifyJS
new Shift.YuiCompressor
```

## Example

``` coffeescript
Shift     = require('shift')
mustache  = new Shift.Mustache()
mustache.render "{title}!", locals: title: "Hello World", (string) -> console.log(string) #=> "Hello World!"
```

or more formally:

``` coffeescript
engine    = new Shift.Jade
input     = fs.readFileSync("./spec/fixtures/views/jade.jade", "utf-8")
output    = fs.readFileSync("./spec/fixtures/views/jade.html", "utf-8")
engine.render input, (error, result) ->
  expect(result).toEqual output
```

## API

``` coffeescript
engine = new Shift.CoffeeScript
engine.render(string, options, callback)
```

## Development
{'fraction_non_alphanumeric': 0.15047021943573669, 'fraction_numerical': 0.0020898641588296763, 'mean_word_length': 4.518731988472623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7670478', 'n_tokens_mistral': 700, 'n_tokens_neox': 649, 'n_words': 161}