0.0.5 • Published 6 years ago

pug-stylus v0.0.5

Weekly downloads
11
License
MIT
Repository
github
Last release
6 years ago

Setup filter

Install dependencies

npm install stylus

Set as pug filter

const pug = require('pug');
pug.filters.stylus = require('pug-stylus')();

Set filename for stylus when render

pug.filters.stylus = require('pug-stylus')(function (options, args) {
  options.filename = args.filename;
});

Use filter

:stylus
  body
    color red

Output:

body{color:red}

Pretty render.

:stylus(compress=false)
  body
    color red

Output:

body {
  color: red;
}

Render with style tag.

:stylus(wrap=true)
  body
    color red

Output:

<style>body{color:red}</style>
0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago