feds-build-views
v0.9.6
Published
> Gulp task for compiling Jade templates to HTML or Latte
Downloads
3
Readme
feds-build-views
Gulp task for compiling Jade templates to HTML or Latte
Install
$ npm install --save feds-build-views
Usage
gulpfile.js
var gulp = require('gulp')
var partial = require('lodash.partial')
var viewsFn = require('feds-build-views').viewsCompile
var viewsOpts = require('./config/config-views')
gulp.task('views', partial(viewsFn, gulp, viewsOpts))
return gulp
API
viewsCompile
CLI modifiers
--production
produces minified and optimized output--watch
watch sources and rebuild on change/addition
gulp
Type: Gulp
Instance of Gulp
options
ext
Type: boolean
Default: false
postHTML
Type: object
Default: {}
pathPrefix
Type: string
Default: ``
pageList
Type: array
Default: []
License
MIT © Viktor Bezděk