Creates css files by BEMJSON declaration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

create-files-by-bemjson

Usage

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

Example

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');