<commit_before># thewall-templater-dustjs

[![Build Status](https://api.shippable.com/projects/5534c1c0edd7f2c052c8e133/badge?branchName=master)](https://app.shippable.com/projects/5534c1c0edd7f2c052c8e133/builds/latest)

## About

This is a template handler compatible with [The Wall](https://bitbucket.org/hxshortbreaks/the-wall).

Inside here, you have the template handler that conforms to the interface expected by the wall, it has the template engine (in this case Dust) included and any additional template "helpers" as required.

## Getting Started

If you want to work on this repo you will need to install the dependencies

```
$ git clone <EMAIL>:hxshortbreaks/thewall-templater-dustjs.git
```

and then fetch the dependencies

```
$ npm install
```

To include this module in your project add the following to your package.json

```
"thewall-templater-dustjs": "git+ssh://git@bitbucket.org:hxshortbreaks/thewall-templater-dustjs.git"
```


## Documentation

### Helpers

- _loadTemplate
  A special helper so we can load templates with a namespace.

- _formatDate
  using `momentjs` this helper takes a date string and a format and returns a formatted date string.

- _dateDifferential
  using `momentjs` this helper takes a startDate and endDate to calculate the days difference

- _formatNumber
  using 'numeraljs' this helpers takes a number string and a format and returns a formatted date string.


## Tests

Tests will run using the default grunt task but can also be called stand-alone using:
```
$ npm test
```

## Contributing

Code is linted checked against the style guide with [make-up](https://github.com/holidayextras/make-up), running npm test will run all tests required.


## License
Copyright (c) 2014 Shortbreaks
Licensed under the MIT license.<commit_msg>few tweaks on the Readme<commit_after># thewall-templater-dustjs

[![Build Status](https://api.shippable.com/projects/5534c1c0edd7f2c052c8e133/badge?branchName=master)](https://app.shippable.com/projects/5534c1c0edd7f2c052c8e133/builds/latest)

## About

This is a template handler compatible with [The Wall](https://bitbucket.org/hxshortbreaks/the-wall).

Inside here, you have the template handler that conforms to the interface expected by the wall, it has the template engine (in this case Dust) included and any additional template "helpers" as required.

## Getting Started

If you want to work on this repo you will need to install the dependencies

```
$ git clone <EMAIL>:hxshortbreaks/thewall-templater-dustjs.git
```

and then fetch the dependencies

```
$ npm install
```

To include this module in your project add the following to your package.json

```
"thewall-templater-dustjs": "git+ssh://git@bitbucket.org:hxshortbreaks/the-wall-templater-dustjs.git"
```


## Documentation

### Helpers

- _loadTemplate
	A special helper so we can load templates with a namespace.

- _formatDate
	using `momentjs` this helper takes a date string and a format and returns a formatted date string.

- _dateDifferential
	using `momentjs` this helper takes a startDate and endDate to calculate the days difference

- _formatNumber
	using 'numeraljs' this helpers takes a number string and a format and returns a formatted date string.


## Tests

Tests will run using the default grunt task but can also be called stand-alone using:
```
$ npm test
```

## Contributing

Code is linted checked against the style guide with [make-up](https://github.com/holidayextras/make-up), running npm test will run all tests required.


## License
Copyright (c) 2014 Shortbreaks
Licensed under the MIT license.
{'fraction_non_alphanumeric': 0.08570630932439978, 'fraction_numerical': 0.018983807928531545, 'mean_word_length': 4.74198717948718, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7160534', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1062, 'n_words': 405}