1.0.4 • Published 7 years ago

@unisharp/pug-inheritance v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Pug Inheritance - Another Implementation by UniSharp

Build Status

Get files which include or extend the given Pug file.

Installation

Via npm

npm install @unisharp/pug-inheritance --save

Via yarn

yarn add @unisharp/pug-inheritance

Usage

const PugInheritance = require('@unisharp/pug-inheritance');

let pugInheritance = new PugInheritance('resources/pug/**/*.pug');

Inheritance files

console.log(pugInheritance.getInheritance('resources/pug/layout/app.pug'));

Output

[
    'resources/pug/layout/app.pug',
    'resources/pug/index.pug',
    'resources/pug/page.pug'
]

Integration with gulp-pug

See @unisharp/gulp-pug-inheritance.

License

MIT