Skip to content

billypon/pug-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup filter

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

Set filename for pug when render

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

Use filter

:pug
  div Message for pug filter.

Output:

<script type="text/html"><div>Message for pug filter.</div></script>

Pretty render.

:pug(pretty=true)
  div Message for pug filter.

Output:

<script type="text/html">
  <div>Message for pug filter.</div>
</script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published