← All repos

pug

Pug – robust, elegant, feature rich template engine for Node.js

Browse cluster: Terminal & CLI Output Styling
2,575commits
258contributors
7languages

Tech stack & purpose

Pug is a high-performance template engine for Node.js and browsers, heavily influenced by Haml and written in JavaScript. The project is organized as a monorepo of modular packages that work together to compile Pug templates into HTML: pug-lexer tokenizes input strings, pug-parser converts tokens into an abstract syntax tree, pug-load resolves template dependencies through includes and extends, pug-linker flattens the AST, and pug-code-gen generates JavaScript functions that produce HTML output. Supporting packages handle filters, attributes, error reporting, and runtime utilities.

Languages

JavaScript
78.5%
Pug
15.0%
HTML
6.0%
TypeScript
0.5%
CoffeeScript
0.0%
Stylus
0.0%
CSS
0.0%

Contributors (top 30 of 258)