bemhtml-compat

0.1.2 • Public • Published

BEMHTML-COMPAT Build Status NPM version

Transpiler from old bemhtml source code to new javascript-compatible code.

Usage

var bemcompat = require('bemhtml-compat');
 
bemcompat.transpile('block b1, tag: "a"');
/* Returns:
 *   match(this.block === 'b1', this._mode === 'tag')('a');
 */

Readme

Keywords

none

Package Sidebar

Install

npm i bemhtml-compat

Weekly Downloads

15

Version

0.1.2

License

MIT

Last publish

Collaborators

  • fedor.indutny
  • indutny