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 = ;var bh = ; var bemjson = block: 'page' tag: 'html' content: '<h1>Hello world!</ht>'; gulp ;
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