awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
pugjs avatar

pugjs/pug

0
View on GitHub↗
21,850 stars·1,932 forks·JavaScript·29 viewspugjs.org↗

Pug

Pug is a template engine and compiler that transforms whitespace-sensitive shorthand syntax into standard HTML. It functions as both a Node.js template engine for server-side rendering and a browser-side precompiler for client-side templating.

The system converts template files into executable JavaScript functions to increase rendering speed. This allows for the generation of full HTML documents by combining dynamic data and logical structures, either on a server or as standalone JavaScript files for execution directly in the browser.

The engine manages the translation process through HTML template compilation and dynamic HTML generation. It supports rendering templates directly from the filesystem using local variables and specific configurations.

Features

  • HTML Templating Engines - Provides a concise shorthand syntax for authoring web page structures and generating dynamic HTML.
  • Node.js Ecosystem - Functions as a core part of the Node.js ecosystem by providing a whitespace-sensitive template engine.
  • Indented Syntax Parsers - Parses whitespace-sensitive shorthand syntax into a hierarchical tree by tracking indentation levels.
  • Template Compilation - Transforms template syntax into executable JavaScript functions to achieve high-performance HTML interpolation.
  • Precompiled Template Execution - Generates standalone JavaScript files that run template logic directly in the browser without needing the compiler.
  • Server-Side Rendering Engines - Generates full HTML documents by combining dynamic data and logical structures on the server.
  • Client-Side Template Engines - Precompiles templates into JavaScript functions for rendering dynamic content directly within the web browser.
  • Node.js View Engines - Converts template files into browser-ready HTML specifically for the view layer of Node.js applications.
  • Server-Side Rendering - Generates dynamic HTML pages on the server by combining data with predefined templates.
  • Concatenation Optimizers - Uses a memory buffer for efficient string construction and concatenation of the final HTML output.
  • Abstract Syntax Tree Tools - Implements an abstract syntax tree to allow for structural analysis and manipulation of templates before final code generation.
  • Client-Side Template Rendering - Converts templates into standalone JavaScript files to achieve high-performance rendering directly in the browser.
  • Template Engines - Robust, feature-rich template engine.
  • Templating - High-performance template engine with concise syntax.
  • Templating Engines - Robust, elegant, feature rich template engine for nodejs. (formerly known as Jade)

Star history

Star history chart for pugjs/pugStar history chart for pugjs/pug

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does pugjs/pug do?

Pug is a template engine and compiler that transforms whitespace-sensitive shorthand syntax into standard HTML. It functions as both a Node.js template engine for server-side rendering and a browser-side precompiler for client-side templating.

What are the main features of pugjs/pug?

The main features of pugjs/pug are: HTML Templating Engines, Node.js Ecosystem, Indented Syntax Parsers, Template Compilation, Precompiled Template Execution, Server-Side Rendering Engines, Client-Side Template Engines, Node.js View Engines.

Which projects share features with pugjs/pug?

Projects with overlapping indexed features include: mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data… handlebars-lang/handlebars.js — Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by… linkedin/dustjs — Dustjs is a JavaScript templating engine and asynchronous template renderer. It functions as an isomorphic HTML… olado/dot — doT is a compiled JavaScript template engine and rendering system used to generate dynamic text and HTML for both… wycats/handlebars.js — Handlebars.js is a JavaScript templating engine used to generate HTML and other text formats by combining static… marko-js/marko — Marko is a component-based web framework and HTML-based template engine used to build reactive user interfaces. It…

Projects sharing features with Pug

These projects share indexed features with Pug. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • mde/ejsmde avatar

    mde/ejs

    8,105View on GitHub↗

    EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data into template files. It functions as both a server-side template processor and a client-side rendering engine, allowing for the creation of dynamic markup in both backend and frontend environments. The engine supports the creation of modular web layouts through partial template inclusion, where smaller reusable components are inserted into parent pages. Users can modify the template syntax by defining custom delimiters to avoid conflicts with other languages. The project cove

    JavaScript
    View on GitHub↗8,105
  • handlebars-lang/handlebars.jshandlebars-lang avatar

    handlebars-lang/handlebars.js

    18,640View on GitHub↗

    Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by merging data objects with templates. It utilizes an abstract syntax tree parser to transform template strings into executable JavaScript functions. The system separates data from presentation by restricting complex logic to external helper functions rather than the template itself. It features a precompiled template compiler that converts templates into functions before deployment to increase execution speed and reduce startup latency. The engine covers a broad range of content ge

    JavaScripthandlebarsmustachetemplates
    View on GitHub↗18,640
  • linkedin/dustjslinkedin avatar

    linkedin/dustjs

    2,913View on GitHub↗

    Dustjs is a JavaScript templating engine and asynchronous template renderer. It functions as an isomorphic HTML generator, producing consistent output across both client and server environments. The system employs a logic-less template syntax to separate presentation from business logic, utilizing simple tags for iteration and conditional checks. It supports asynchronous data resolution, allowing the rendering process to pause and resume as external data sources respond. The engine provides capabilities for dynamic HTML generation, server-side rendering, and client-side templating. It utiliz

    JavaScript
    View on GitHub↗2,913
  • olado/dotolado avatar

    olado/doT

    5,043View on GitHub↗

    doT is a compiled JavaScript template engine and rendering system used to generate dynamic text and HTML for both browser-based interfaces and Node.js server-side environments. It transforms template strings into executable JavaScript functions to produce text output across different runtime environments. The system focuses on pre-compiling template source files into standalone JavaScript modules at build time. This process eliminates runtime compilation overhead, increases execution speed, and prevents malicious code injection. The engine supports logic-based interpolation using conditional

    JavaScript
    View on GitHub↗5,043
Compare all 30 related projects→