1. pug-linker
Link multiple pug ASTs together using include/extends
pug-linker
Package: pug-linker
Created by: pugjs
Last modified: Sat, 25 Jun 2022 00:04:11 GMT
Version: 4.0.0
License: MIT
Downloads: 6,760,263
Repository: https://github.com/pugjs/pug/tree/master/packages/pug-linker

Install

npm install pug-linker
yarn add pug-linker

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin