0.3.0 • Published 2 years ago
pugneum-linker v0.3.0
pugneum-linker
Link multiple pugneum ASTs together using include/extends
Installation
npm install pugneum-linkerUsage
var link = require('pugneum-linker');link(ast)
Flatten the pugneum 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.
pugneum-loader is designed to do that.
License
MIT