pug-linker

Link multiple pug ASTs together using include/extends

MIT 19 个版本
pug
安装
npm install pug-linker
yarn add pug-linker
pnpm add pug-linker
bun add pug-linker
README

pug-linker

Link multiple pug ASTs together using include/extends

Build Status Dependencies Status DevDependencies Status NPM version

Installation

npm install pug-linker

Usage

var link = require('pug-linker');

link(ast)

Flatten the Pug AST of inclusion and inheritance.

This function merely links the AST together; it doesn't read the file system to resolve and parse included and extended files. Thus, the main AST must already have the ASTs of the included and extended files embedded in the FileReference nodes. pug-load is designed to do that.

License

MIT

版本列表
4.0.0 2020-05-25
4.0.0-canary-2 2020-05-25
4.0.0-canary-1 2020-05-24
3.0.6 2019-06-18
3.0.5 2018-03-08
3.0.4 2018-03-06
3.0.3 2017-09-06
3.0.2 2017-08-01
3.0.1 2017-06-02
3.0.0 2017-05-01
2.0.3 2017-04-18
2.0.2 2017-02-04
2.0.1 2017-01-25
2.0.0 2017-01-25
1.0.2 2017-01-24
1.0.1 2016-08-26
1.0.0 2016-06-02
0.0.4 2016-02-17
0.0.0 2015-12-12