0.2.0 • Published 10 years ago

gulp-bh v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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

0.2.0

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago