Skip to content

bem-archive/bemhtml-compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Compatibility layer for old BEMHTML syntax

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •