Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tadatuta/create-files-by-bemjson

Creates css files by BEMJSON declaration
https://github.com/tadatuta/create-files-by-bemjson

Last synced: 30 days ago
JSON representation

Creates css files by BEMJSON declaration

Awesome Lists containing this project

README

        

# create-files-by-bemjson

## Usage
```js
require('create-files-by-bemjson')(bemjson, [level = 'blocks']);
```

## Example
```js
require('create-files-by-bemjson')({
block : 'information',
content : [
{
block : 'telephone',
content : [
{
elem : 'phone-number',
content : '8 (831) 280-96-51'
},
{
elem : 'opening-times',
content : 'Пн-Пт: 9:00-18:00'
}
]
},
{
block : 'telephone',
content : [
{
elem : 'phone-number',
content : '8 (800) 555-18-38'
},
{
elem : 'additional-information',
content : 'Звонок по России бесплатный'
}
]
}
]
}, 'common.blocks');
```