bem-object
v2.0.3
Published
Data abstraction for gulp-bem
Readme
bem-object
Properties
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)
Getters
bemObject.id
alias bem
BEM identifier, composed from block, elem, mod and val.
API
object(props)
Constructs BEM Object.
props can be:
- String - specifies level and properties:
some/level/block__elem_mod_val - Object - contains properties to assign
License
MIT (c) 2014 Vsevolod Strukchinsky
