<commit_before>
> Render [dust](https://github.com/linkedin/dustjs) templates into HTML

*Issues with the output should be reported on the Dust [issue tracker](https://github.com/linkedin/dustjs/issues).*

## Install

```sh
$ npm install --save-dev gulp-dust-html dustjs-linkedin
```


## Usage

```js
var gulp = require('gulp');
var dust = require('dustjs-linkedin');
dust.helpers = require('dustjs-helpers').helpers;
var dusthtml = require('gulp-dust-html');

gulp.task('default', function () {
  return gulp.src('templates/index.html')
	 .pipe(dusthtml({
	   basePath: 'templates',
           data: data
         }))
	 .pipe(gulp.dest('dist'));
});
```


## API

### dust([options])

#### options

##### basePath

Type: `string`  
Default: `'.'`

Relative templates directory path (used to resolve partials). 
Example: `templates`


##### whitespace

Type: `boolean`  
Default: `false`

Preserve whitespace.

##### data

Type: `object` or `function`
Default: `{}`

Context which is passed to dust templates. If a function is provided the function will be called with one parameter, the name of the file

##### defaultExt

Type: `string`
Default: `.dust`

Default extension used for templates

## Todo

 - Update tests to reflect the new codebase
 - Think of a better way to handle context passing (maybe a `contents` directory?)


## License

MIT
<commit_msg>add config to readme<commit_after>
> Render [dust](https://github.com/linkedin/dustjs) templates into HTML

*Issues with the output should be reported on the Dust [issue tracker](https://github.com/linkedin/dustjs/issues).*

## Install

```sh
$ npm install --save-dev gulp-dust-html dustjs-linkedin
```


## Usage

```js
var gulp = require('gulp');
var dust = require('dustjs-linkedin');
dust.helpers = require('dustjs-helpers').helpers;
var dusthtml = require('gulp-dust-html');

gulp.task('default', function () {
  return gulp.src('templates/index.html')
	 .pipe(dusthtml({
	   basePath: 'templates',
           data: data
         }))
	 .pipe(gulp.dest('dist'));
});
```


## API

### dust([options])

#### options

##### basePath

Type: `string`  
Default: `'.'`

Relative templates directory path (used to resolve partials). 
Example: `templates`


##### whitespace

Type: `boolean`  
Default: `false`

Preserve whitespace.

##### data

Type: `object` or `function`
Default: `{}`

Context which is passed to dust templates. If a function is provided the function will be called with one parameter, the name of the file

##### defaultExt

Type: `string`
Default: `.dust`

Default extension used for templates

##### config

Type: `object`
Default: `{}`

Use it to override any of the dust.config values, e.g. [`cache`](http://www.dustjs.com/guides/rendering/) or [`amd`](http://www.dustjs.com/guides/rendering/).

## Todo

 - Update tests to reflect the new codebase
 - Think of a better way to handle context passing (maybe a `contents` directory?)


## License

MIT

{'fraction_non_alphanumeric': 0.155366269165247, 'fraction_numerical': 0.0, 'mean_word_length': 4.079584775086505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '5159140', 'n_tokens_mistral': 969, 'n_tokens_neox': 911, 'n_words': 292}