gulp-bemhtml

    0.0.4 • Public • Published

    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.

    Install

    npm i gulp-bemhtml

    DownloadsWeekly Downloads

    3

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • sullenor