atom-bemmet

Atom plugin for bemmet

MIT License

Stars
5
Committers
3

atom-bemmet package

Atom plugin for bemmet.

How to use

To convert an abbreviation to BEMJSON press shift-cmd-C for Mac and 'shift-ctrl-C' for Windows.

For example, this abbreviation

menu>__item*2>link_theme_islands

will be transformed into

{
    block: 'menu',
    content: [
        {
            block: 'menu',
            elem: 'item',
            content: {
                block: 'link',
                mods: {
                    theme: 'islands'
                },
                content: {}
            }
        },
        {
            block: 'menu',
            elem: 'item',
            content: {
                block: 'link',
                mods: {
                    theme: 'islands'
                },
                content: {}
            }
        }
    ]
}