gulp-statil
v0.6.0
Published
Gulp plugin for Statil, a lightweight HTML generator
Downloads
9
Maintainers
Readme
Description
This is a gulp
plugin for
Statil
, a lightweight templating utility.
Contrary to its name, this plugin doesn't actually use Statil. It simply provides a file buffering utility, which allows you to use Statil directly.
Installation and Usage
npm i gulp-statil
In your gulpfile.js
:
const {withBufferedContents} = require('gulp-statil')
const {createSettings, renderSettings} = require('statil')
gulp.task('templates', () => (
gulp.src('src/html/**/*')
.pipe(withBufferedContents(templates => (
renderSettings(createSettings(templates, {}))
)))
.pipe(gulp.dest('dist'))
))