<commit_before># [gulp](http://gulpjs.com)-gorender

> [Gulp](http://gulpjs.com) plugin to render files with [Go](http://golang.org) [text.template](http://golang.org/pkg/text/template/) template engine.

## Install

```sh
$ npm install --save-dev gulp-gorender
```

You also need to have [gorender](http://github.com/localvoid/gorender) installed.


## Usage

```js
var gulp = require('gulp');
var gorender = require('gulp-gorender');

var SRC = 'src/*.html';
var DEST = 'dist';

gulp.task('default', function () {
	return gulp.src(SRC)
		.pipe(gorender({data: 'data'}))
		.pipe(gulp.dest(DEST));
});
```

## API

### gorender(options)

#### options

##### data

Type: `String`
Default: `data`

The data directory.

Data files should be in JSON format.


## [gulp-changed](https://www.npmjs.org/package/gulp-changed) comparator

`gorender.compareLastModifiedTime(options)` checks for data dependencies.

#### options

##### data

Type: `String`
Default: `data`

The data directory.<commit_msg>Fix formatting in README.md file<commit_after># [gulp](http://gulpjs.com)-gorender

> [Gulp](http://gulpjs.com) plugin to render files with
> [Go](http://golang.org)
> [text.Template](http://golang.org/pkg/text/template/) template
> engine.

## Install

```sh
$ npm install --save-dev gulp-gorender
```

You also need to have [gorender](http://github.com/localvoid/gorender)
installed.


## Usage

```js
var gulp = require('gulp');
var gorender = require('gulp-gorender');

var SRC = 'src/*.html';
var DEST = 'dist';

gulp.task('default', function () {
	return gulp.src(SRC)
		.pipe(gorender({data: 'data'}))
		.pipe(gulp.dest(DEST));
});
```

## API

### gorender(options)

#### options

##### data

Type: `String`  
Default: `data`

The data directory.

Data files should be in JSON format.


## [gulp-changed](https://www.npmjs.org/package/gulp-changed)
   comparator

`gorender.compareLastModifiedTime(options)` checks for data
dependencies.

#### options

##### data

Type: `String`  
Default: `data`

The data directory.
{'fraction_non_alphanumeric': 0.19207920792079208, 'fraction_numerical': 0.0, 'mean_word_length': 4.462162162162162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '1480131', 'n_tokens_mistral': 766, 'n_tokens_neox': 726, 'n_words': 163}