Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 417 Bytes

load.md

File metadata and controls

16 lines (12 loc) · 417 Bytes

Modifications Done by pug-load

When pug-load is used (postLoad plugin hook and after), the AST is extended as following.

File Operations

FileReference

extend FileReference {
  fullPath: string;  // resolved path after being processed by `resolve` function in pug-load
  str: string;       // raw content of file
  ast: Block | null; // if the file is a Pug file, the parsed AST of the file
}