# gulp-bh
**Repository Path**: mirrors_floatdrop/gulp-bh
## Basic Information
- **Project Name**: gulp-bh
- **Description**: Gulp plugin for bh files rendering
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-09-24
- **Last Updated**: 2026-05-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# gulp-bh
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]
Plugin, that fetches `*.bh.js` files and renders bemjson. This is just a wrapper around [BH](https://github.com/enb-make/bh), all questions about BH should go there.
## Usage
```js
var gulp = require('gulp');
var bh = require('gulp-bh');
var bemjson = {
block: 'page',
tag: 'html',
content: '
Hello world!'
};
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](https://github.com/enb-make/bh/blob/master/lib/bh.js#L527-L538) in BH.
## License
MIT (c) 2014 Vsevolod Strukchinsky
[npm-url]: https://npmjs.org/package/gulp-bh
[npm-image]: http://img.shields.io/npm/v/gulp-bh.svg?style=flat
[travis-url]: http://travis-ci.org/floatdrop/gulp-bh
[travis-image]: http://img.shields.io/travis/floatdrop/gulp-bh.svg?branch=master&style=flat
[depstat-url]: https://david-dm.org/floatdrop/gulp-bh
[depstat-image]: http://img.shields.io/david/floatdrop/gulp-bh.svg?style=flat