Skip to content

floatdrop/bem-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bem-object

NPM version Build Status Coverage Status Dependency Status

Properties

Each object will contain next properties:

  • block - name of the block
  • elem - name of the element
  • modName - name of the modificator
  • modVal - value of the modificator
  • level - 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

About

Data abstraction for gulp-bem

Resources

Stars

Watchers

Forks

Packages

No packages published