gulp-bemjson
Process BEMJSON to HTML with BH
Install
$ npm install --save-dev gulp-bemjson
Usage
// gulpfile.jsvar gulp = ;var bemjson = ; gulp;
//page.bemjson.jsmoduleexportsbemjson = block: 'page' tag: 'html' content: elem: 'body' tag: 'body' content: 'Hello!' ;
With some BH templates, which applies for this file only:
//page.bemjson.jsmoduleexportsbemjson = block: 'page' content: elem: 'body' content: 'Hello!' ; moduleexports { bh;};
What is it BEM?
License
MIT © Dmitry Kokorev