Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tadatuta/create-files-by-bemjson
- Owner: tadatuta
- Created: 2015-05-07T14:50:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-07T14:57:16.000Z (over 9 years ago)
- Last Synced: 2024-10-05T08:41:13.426Z (about 1 month ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 7
- Watchers: 4
- 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');
```