📜  哈巴狗到 html - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:55.386000             🧑  作者: Mango

代码示例3
The general rendering process of Pug is simple. pug.compile() will compile the Pug source code into a JavaScript function that takes a data object (called “locals”) as an argument. Call that resultant function with your data, and voilà!, it will return a string of HTML rendered with your data.