postxml-wrap

0.2.2 • Public • Published

postxml-wrap

npm version

PostXML plugin wrap with emmet abbreviation. Support only tags and classes.

Installation

npm i postxml- --save-dev

Usage

PostXML

Example

! Plugin doesn't work with whitespaces. They are added just for example

Input

<div wrap=".g-section.bg>.g-section__content">
    <a></a>
</div>

Output

<div class="g-section bg">
    <div class="g-section__content">
        <div>
            <a></a>
        </div>
    </div>
</div>

Options

attr

Type: String
Default: wrap

Licence

MIT

/postxml-wrap/

    Package Sidebar

    Install

    npm i postxml-wrap

    Weekly Downloads

    1

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • yepninja