1.4.2 • Published 2 months ago

@wooweb/content v1.4.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Wooweb Content Pug Component

Mixin Component container for content

Source

mixin Content({modifier='', js=false})
    -const classComponent = `${setClass('content', modifier, js)}`
    main(class=classComponent)
        block content

Usage

Basic

Code Pug

+Content({})
    p Hello world

Code Generate

<main class="af-content">
    <p>Hello world</p>
</main>

With modifier

Code Pug

+Content({modifier:'red'})
    p Hello world

Code Generate

<main class="af-content af-content--red">
    <p>Hello world</p>
</main>

With Javascript Class

Code Pug

+Content({js:true})
    p Hello world

Code Generate

<main class="af-content js-content">
    <p>Hello world</p>
</main>

You can mixed properties

1.4.2

2 months ago

1.3.3

5 months ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago