pug-bem-lexer
v0.0.9
Published
Adds bem shortcuts to pug
Downloads
7
Maintainers
Readme
pug-bem-lexer
A plugin that adds BEM shortcuts to pug
This repo has been deprecated in favor of pug-bemify
Installation
run npm i pug-bem-lexer
Setup
pug.render(somePugString, {
plugins : [
{
lex : require('pug-bem-lexer')
}
]
});
Example Usage
.block.-a-modifier
._some-element
renders:
<div class="block block--a-modifier">
<div class="block__some-element"></div>
</div>