@unisharp/pug-inheritance

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @unisharp/pug-inheritance

Weekly Downloads

4

Version

1.0.4

License

MIT

Last publish

Collaborators

  • unisharp
  • youchenlee