npm install beml[build]: https://travis-ci.org/zenwalker/node-beml.png?branch=master
[build-link]: https://travis-ci.org/zenwalker/node-beml
This is simple HTML preprocessor (or postprocessor) which extend HTML syntax for
comfortable working with bem html.
Also available plugins for Gulp,
Grunt, Broccoli and Postxml.
Raw HTML in BEM style is difficult to read. Also, I (and not only I) love HTML
and don't want to use BEMHTML, BEMJSON and others specific technologies.
* Maximum simplicity - HTML syntax, without translate from another language.
* Possibility port to other languages (e.g. PHP or Python).
* Joint work with template engines.
* Ease of use.
``html`
translated to
`html`
`javascript
var beml = require('beml');
var config = {
elemPrefix: '__',
modPrefix: '_',
modDlmtr: '_'
};
var html = beml('
', config);Syntax reference
$3
`html
``html
`$3
`html
``html
`$3
`html
``html
`$3
`html
``html
`For complex values you can use pseudo JSON syntax:
`html
``html
``