Hacker ApprovedDepartments

Pug template engine

Shares rank 4 of 6 template engines by recommenders

Developers like Pug for HTML-like templates without closing tags and with features that cut repetition. The main caveat is its non-HTML syntax makes sharing templates with plain HTML hard.

Developers like Pug for HTML-like templates without closing tags and with features that cut repetition. The main caveat is its non-HTML syntax makes sharing templates with plain HTML hard.

7 people gave an opinion

recommend it
5
criticize it
2
approval share
71%
Each figure is one person. RecommendsCriticizes

Recommended in 4 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: not recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 5 people recommend itNeeds 10 or more, not met.
  • 2.5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 4 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • HTML-like syntax without closing tags

    “It's essentially pure HTML but with no closing tags and with features to reduce repetition.”

    Comment from 31 May 2026 in “The Website Specification”
  • Features that reduce repetition

    “It's essentially pure HTML but with no closing tags and with features to reduce repetition.”

    Comment from 31 May 2026 in “The Website Specification”
  • Less clutter in templates

    “Pug for example is bringing far less clutter”

    Comment from 11 Jan 2026 in “You are not required to close your <p>, <li>, <img>, or <br> tags in HTML”
  • Well regarded over the years

    “I have always thought highly of Pug”

    Comment from 9 Nov 2025 in “Marko – A declarative, HTML‑based language”

What people warn about

Each mark is one comment

  • Odd syntax hard to share with HTML

    “they were in JS-like and with an odd HTML syntax that made sharing between plain HTML and whichever language very hard”

    Comment from 20 Dec 2025 in “Build Your Own React”

Other template engines people recommend

The four most recommended other template engines, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Pug template engine compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Jinja14767%7—Approved
Templ9375%4——
ASP.NET Razor8189%5——
Pug template engineThis page5271%4——
Gsxui50100%2——
See all 6 template engines, ranked

What people said

6 of the 7 comments that mention it, newest first. Each links to the original comment.

“It's essentially pure HTML but with no closing tags and with features to reduce repetition.”

RecommendsComment from 31 May 2026 in “The Website Specification”

“Pug lets you turn any API or documentation into a high-quality CLI.”

RecommendsComment from 10 Mar 2026 in “Convert Any API Documentation into a CLI for AI Agents”

“Pug for example is bringing far less clutter”

RecommendsComment from 11 Jan 2026 in “You are not required to close your <p>, <li>, <img>, or <br> tags in HTML”

“The original site was on Railway and written in Pug!”

CriticizesComment from 21 Dec 2025 in “Show HN: Jmail – Google Suite for Epstein files”

“they were in JS-like and with an odd HTML syntax that made sharing between plain HTML and whichever language very hard”

CriticizesComment from 20 Dec 2025 in “Build Your Own React”

“I have always thought highly of Pug”

RecommendsComment from 9 Nov 2025 in “Marko – A declarative, HTML‑based language”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.