malta-pug

1.0.7 • Public • Published

npm version npm downloads npm downloads

This plugin can be used on: .pug files

Options : no options

Sample usage:

malta app/source/home.pug public -plugins=malta-pug

or in the .json file :

"app/source/home.pug" : "public -plugins=malta-pug"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/home.pug',
    'public',
    '-plugins=malta-pug',
    '-options=showPath:false,watchInterval:500,verbose:0'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

Package Sidebar

Install

npm i malta-pug

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

2.68 kB

Total Files

4

Last publish

Collaborators

  • fedeghe