bem-xjst

[XJST](https://github.com/veged/xjst)-based compiler for a BEM-specific templates.

npm install bem-xjst
16 downloads in the last day
348 downloads in the last week
1 051 downloads in the last month

BEM-XJST Build Status NPM version

XJST-based compiler for a BEM-specific templates.

Installation

Install it by npm: npm install bem.

Usage

As js-module

var BEM_XJST = require('bem-xjst'),
    template = BEM_XJST.compile('... your source code ...');

template.apply(/* ... your input data here ... */);

As programm

$ bem-xjst --help

Usage:
  bem-xjst [OPTIONS] [ARGS]


Options:
  -h, --help : Help
  -v, --version : Version
  -d, --dev-mode : Dev mode
  -i INPUT, --input=INPUT : Input file (default: stdin)
  -o OUTPUT, --output=OUTPUT : Output file (default: stdout)
npm loves you