bemb
/'bembɪ/
tiny BEM utility library
API
There are three methods getElement, getModifier, createBlock
getElement
Return you proper element class in BEM notation
// block__element
Default separator is "__" but this could be changed with third parameter
// block--element
getModifier
Return you proper modifier class in BEM notation
// block__element_modifier
Default separator is "_" but this could be changed with third parameter
// block__element-modifier
createBlock
Returns object with three methods getElement, getModifier, setDivs
var block = ;block; // b__eblock; // b_mblock // b__e_mblock;block // b--e-m