let parser = require("./init"); let {writeFile} = require("node:fs/promises"); async function main() { let node = await parser.processFile("./source/abc.blade.php"); await writeFile("./source/abc.blade.php.js", node.parsedContent.ast, "utf8"); let result = node.execute({ ebilet: 25 }); await writeFile("./source/abc.blade.php.cache", node.cachedData, "utf8"); await writeFile("./target/abc.html", result, "utf8"); }; process.nextTick(main);