🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

gulp-bemhtml

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-bemhtml

bemhtml templates compiler

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
9
12.5%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-bemhtml

Compile bemhtml templates into JavaScript

Install

$ npm install gulp-bemhtml

Usage

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'));
});
$ node -p "require('./dist/page.bemhtml.js').BEMHTML.apply({block: 'page'});"

API

plugin options

  • Boolean cache — caching. Perhaps in the production mode. Default — false.
  • Boolean devMode — development mode. Default — true.
  • String exportName — bemhtml handler's variable name. Default — BEMHTML.

Keywords

gulpplugin

FAQs

Package last updated on 15 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts