$ cnpm install bemhtml-compat
Transpiler from old bemhtml source code to new javascript-compatible code.
var bemcompat = require('bemhtml-compat');
bemcompat.transpile('block b1, tag: "a"');
/* Returns:
* match(this.block === 'b1', this._mode === 'tag')('a');
*/
Copyright 2014 - 2017 © taobao.org |