Each object will contain next properties:
block
- name of the blockelem
- name of the elementmodName
- name of the modificatormodVal
- value of the modificatorlevel
- level of definition of current block (full path to level directory)tech
- postfix of file (index.deps.js
tech isdeps.js
)
Functions:
path
- function, that should return full path to file, that described by this bem object.
BEM identifier, composed from block
, elem
, mod
and val
.
Constructs BEM Object.
props
can be:
- String - specifies level and properties:
some/level/block__elem_mod_val.js
(extension is required) - Object - contains properties to assign
options
will be passed to bem-naming instance.
Copy properties block
, elem
, modName
, modVal
in this order. That means, if target
has modName
only - block
and elem
will be copied.
tech
property always copied, if not defined in target.
MIT (c) 2014 Vsevolod Strukchinsky