Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hcodes/gulp-jst_compiler

A JST plugin for Gulp
https://github.com/hcodes/gulp-jst_compiler

Last synced: 7 days ago
JSON representation

A JST plugin for Gulp

Awesome Lists containing this project

README

        

gulp-jst_compiler
=================

A [JST compiler](https://github.com/hcodes/jst) plugin for Gulp

[![NPM version](https://img.shields.io/npm/v/gulp-jst_compiler.svg?style=flat)](https://www.npmjs.com/package/gulp-jst_compiler)
[![Build Status](https://img.shields.io/travis/hcodes/gulp-jst_compiler.svg?style=flat)](https://travis-ci.org/hcodes/gulp-jst_compiler)
[![Dependency Status](https://img.shields.io/david/hcodes/gulp-jst_compiler.svg)](https://david-dm.org/hcodes/gulp-jst_compiler)

## Install

```
npm install gulp-jst_compiler --save-dev
```

## Usage
```javascript
var jst = require('gulp-jst_compiler');

gulp.task('jst', function () {
gulp.src('./templates/**/*.jst.html')
.pipe(jst('all.jst.js'))
.pipe(gulp.dest('./public/js'));
});

gulp.task('default', ['jst']);
```

## Options
```javascript
.pipe(jst('all.jst.js', {withoutKernel: true})) // compile without jst-kernel
```