Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 499 Bytes

README.md

File metadata and controls

14 lines (10 loc) · 499 Bytes

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');
 */