Loading…
Pug is a Node.js template engine that compiles Pug templates into JavaScript functions which, when invoked with a data object, render HTML. It offers APIs such as pug.compile, pug.compileFile, and pug.render (with an optional cache to reuse compiled templates for better performance). It integrates with frameworks like Express and React and supports features like extends, blocks, conditionals, loops, includes, and mixins.
AI named Pug from January 2026 to February 2026.