0.2.0 • Published 11 years ago
gulp-bh v0.2.0
gulp-bh
Plugin, that fetches *.bh.js files and renders bemjson. This is just a wrapper around BH, all questions about BH should go there.
Usage
var gulp = require('gulp');
var bh = require('gulp-bh');
var bemjson = {
    block: 'page',
    tag: 'html',
    content: '<h1>Hello world!</ht>'
};
gulp.src('*.bh.js')
    .pipe(bh(bemjson, 'index.html'))
    .pipe(gulp.dest('./dist'));API
bh(bemjson, filename, options)
Creates writable stream, that consumes *.bh.js files. After finish event it will generate single file with compiled HTML from passed bemjson.
bemjson
Type: Object
filename
Type: String
options
Type: Object
See setOptions in BH.
License
MIT (c) 2014 Vsevolod Strukchinsky