Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
HISTORY.md | D | 24-Sep-2023 | 164 | 11 | 7 | |
LICENSE | D | 24-Sep-2023 | 1 KiB | 19 | 16 | |
README.md | D | 24-Sep-2023 | 1.1 KiB | 29 | 17 | |
index.js | D | 24-Sep-2023 | 5.4 KiB | 186 | 175 | |
package.json | D | 24-Sep-2023 | 597 | 28 | 27 |
README.md
1# pug-linker 2 3Link multiple pug ASTs together using include/extends 4 5[](https://travis-ci.org/pugjs/pug-linker) 6[](https://david-dm.org/pugjs/pug?path=packages/pug-linker) 7[](https://david-dm.org/pugjs/pug?path=packages/pug-linker&type=dev) 8[](https://www.npmjs.org/package/pug-linker) 9 10## Installation 11 12 npm install pug-linker 13 14## Usage 15 16```js 17var link = require('pug-linker'); 18``` 19 20### `link(ast)` 21 22Flatten the Pug AST of inclusion and inheritance. 23 24This 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. 25 26## License 27 28 MIT 29