You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

pug-linker

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-linker

Link multiple jade ASTs together using include/extends


Version published
Weekly downloads
1.4M
decreased by-6.49%
Maintainers
1
Install size
251 kB
Created
Weekly downloads
 

Package description

What is pug-linker?

The pug-linker npm package is a part of the Pug templating engine ecosystem. It is used internally by Pug to link together the abstract syntax tree (AST) nodes generated by the Pug parser. This linking process is essential for transforming the parsed Pug code into a format that can be compiled into HTML.

What are pug-linker's main functionalities?

Linking AST Nodes

This feature allows you to link the AST nodes generated by the Pug parser. The `pugLinker` function takes an AST as input and returns a linked AST, which is ready for further compilation into HTML.

const pugLinker = require('pug-linker');
const ast = /* some AST generated by pug-parser */;
const linkedAst = pugLinker(ast);

Other packages similar to pug-linker

Readme

Source

jade-linker

Link multiple jade ASTs together using include/extends

Build Status Dependency Status NPM version

Installation

npm install jade-linker

Usage

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

link(ast)

Flatten the Jade 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. jade-load is designed to do that.

License

MIT

Keywords

FAQs

Package last updated on 12 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc