https://github.com/tadatuta/create-files-by-bemjson
Creates css files by BEMJSON declaration
https://github.com/tadatuta/create-files-by-bemjson
Last synced: 3 months ago
JSON representation
Creates css files by BEMJSON declaration
- Host: GitHub
- URL: https://github.com/tadatuta/create-files-by-bemjson
- Owner: tadatuta
- Created: 2015-05-07T14:50:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-07T14:57:16.000Z (about 10 years ago)
- Last Synced: 2025-03-28T23:11:13.480Z (4 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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');
```