1# pug-linker 2 3Link multiple pug ASTs together using include/extends 4 5[![Build Status](https://img.shields.io/travis/pugjs/pug-linker/master.svg)](https://travis-ci.org/pugjs/pug-linker) 6[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-linker)](https://david-dm.org/pugjs/pug?path=packages/pug-linker) 7[![DevDependencies Status](https://david-dm.org/pugjs/pug/dev-status.svg?path=packages/pug-linker)](https://david-dm.org/pugjs/pug?path=packages/pug-linker&type=dev) 8[![NPM version](https://img.shields.io/npm/v/pug-linker.svg)](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