1.1K
1K
+ 1
418

What is Pug?

This project was formerly known as "Jade." Pug is a high performance template engine heavily influenced by Haml and implemented with JavaScript for Node.js and browsers.
Pug is a tool in the Templating Languages & Extensions category of a tech stack.
Pug is an open source tool with 20.2K GitHub stars and 1.9K GitHub forks. Here’s a link to Pug's open source repository on GitHub

Who uses Pug?

Companies
239 companies reportedly use Pug in their tech stacks, including Accenture, Coursera, and Glovo.

Developers
779 developers on StackShare have stated that they use Pug.
Pros of Pug
130
Elegant html
86
Great with nodejs
54
Very short syntax
53
Open source
52
Structured with indentation
21
Free
4
Gulp
4
It's not HAML
3
Difficult For Front End Developers,learn backend
3
Really similar to Slim (from Ruby fame)
3
Easy setup
2
Clean syntax
2
Readable code
1
Disdain for angled brackets

Blog Posts

Jun 19 2015 at 6:37AM

ReadMe.io

+25
11
1531

Pug Alternatives & Comparisons

What are some alternatives to Pug?
EJS
It is a simple templating language that lets you generate HTML markup with plain JavaScript. No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript.
Handlebars.js
Handlebars.js is an extension to the Mustache templating language created by Chris Wanstrath. Handlebars.js and Mustache are both logicless templating languages that keep the view and the code separated like we all know they should be.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
TypeScript
TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
Mustache
Mustache is a logic-less template syntax. It can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object. We call it "logic-less" because there are no if statements, else clauses, or for loops. Instead there are only tags. Some tags are replaced with a value, some nothing, and others a series of values.
See all alternatives

Pug's Followers
1000 developers follow Pug to keep up with related blogs and decisions.