gulp-bh

0.2.0 • Public • Published

gulp-bh

NPM version Build Status Dependency Status

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

Readme

Keywords

Package Sidebar

Install

npm i gulp-bh

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • floatdrop