# gulp-bemhtml

> bemhtml templates compiler

Latest version **0.0.4** (published 2015-02-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-bemhtml
pnpm add gulp-bemhtml
yarn add gulp-bemhtml
bun add gulp-bemhtml
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2015-02-15 |
| First published | 2015-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Alexey Litvinov |
| Maintainers | sullenor |
| Keywords | gulpplugin, bemhtml, template, templates, compile, bem-xjst, xjst |

## Links

- npm: https://www.npmjs.com/package/gulp-bemhtml
- Repository: https://github.com/sullenor/gulp-bemhtml
- Issues: https://github.com/sullenor/gulp-bemhtml/issues
- npm.io page: https://npm.io/package/gulp-bemhtml

## Dependencies (3)

- [bem-xjst](https://npm.io/package/bem-xjst.md) ^1.0.0
- [through2](https://npm.io/package/through2.md) ^0.6.3
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.3

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2015-02-15
- 0.0.3 — 2015-02-10
- 0.0.2 — 2015-02-08
- 0.0.1 — 2015-02-08

## README

# gulp-bemhtml

> Compile [bemhtml](http://en.bem.info/technology/bemhtml/v2/reference/) templates into JavaScript


## Install

```sh
$ npm install gulp-bemhtml
```


## Usage

```js
var gulp = require('gulp');
var bemhtml = require('gulp-bemhtml');

gulp.task('default', function () {
  return gulp.src('page.bemhtml')
    .pipe(bemhtml({cache: true, devMode: false}))
    .pipe(gulp.dest('dist'));
});
```

```sh
$ node -p "require('./dist/page.bemhtml.js').BEMHTML.apply({block: 'page'});"
```


## API

### plugin options

* *Boolean* **cache** &mdash; caching. Perhaps in the production mode. Default &mdash; `false`.
* *Boolean* **devMode** &mdash; development mode. Default &mdash; `true`.
* *String* **exportName** &mdash; bemhtml handler's variable name. Default &mdash; `BEMHTML`.

---
_Source: https://npm.io/package/gulp-bemhtml · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
