Software Alternatives & Reviews

Haml VS Pug

Compare Haml VS Pug and see what are their differences

Haml logo Haml

HTML Abstraction Markup Language - A Markup Haiku

Pug logo Pug

Pug is a robust, elegant, feature rich template engine for Node.js
  • Haml Landing page
    Landing page //
    2021-09-22
  • Pug Landing page
    Landing page //
    2023-09-28

Haml

Categories
  • Javascript UI Libraries
  • Development
  • Programming
  • Template Language
Website haml.info
Details $

Pug

Categories
  • Development
  • Javascript UI Libraries
  • Tool
  • Programming Language
Website pugjs.org
Details $

Haml videos

How to Get Baby in Urdu&Hindi | Hamal Check krny ka Treeka | Haml Ghar Ma Chk Krain | Get B In Urdu

Pug videos

Everything You Need to Know About Pugs - Characteristics and Care

More videos:

  • Review - Wolf Dog Reviews Food With Pug!
  • Review - Pug Dog Breed - Pros and Cons

Category Popularity

0-100% (relative to Haml and Pug)
Javascript UI Libraries
24 24%
76% 76
Programming
100 100%
0% 0
Development
22 22%
78% 78
Tool
0 0%
100% 100

User comments

Share your experience with using Haml and Pug. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Pug might be a bit more popular than Haml. We know about 20 links to it since March 2021 and only 17 links to Haml. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Haml mentions (17)

  • Building a syntax highlighting extension for VS Code
    First of all, I like Slim. I like the beauty and cleanness of Slim templates, to me they are way more readable than regular ERB templates and I think they fit in the ruby/Rails ecosystem very well. Slim is a close cousin to Haml, without the ugly percent characters, haha. I've used Slim exclusively in my projects since about 2016. - Source: dev.to / 6 months ago
  • Hamlet: A type-safe Haml template engine for Go
    > I can't say what problem it is supposed to solve "Haml accelerates and simplifies template creation" https://haml.info/ If you'd rather write raw HTML, keeping track of closing tags etc, then don't use HAML. No need to bash it because you personally feel it is ugly or unnecessary. FWIW I personally feel the exact opposite. - Source: Hacker News / 4 months ago
  • Hamlet: A type-safe Haml template engine for Go
    There is a better side by side of the syntax here https://haml.info (i've been using haml for 17 years lol, I find it more enjoyable to read and write). - Source: Hacker News / 4 months ago
  • Any web frameworks that could compare to Symfony?
    Personally, I'd recommend Maud if you don't need something with runtime reloading. Not only is it much faster, it implements a template language that is effectively the Rust-syntax equivalent to Slim or Haml using a procedural macro, so you get compile-time verification that your HTML output is well-formed. Source: about 1 year ago
  • Rux: A JSX-inspired way to render view components in Ruby
    Does this support HAML-style syntax? We're 100% HAML-only for templating, whether normal Rails views or ViewComponent... https://github.com/haml/haml so going back to writing HTML or ERB feels like a huge downgrade. - Source: Hacker News / about 1 year ago
View more

Pug mentions (20)

  • Building Vue Components With Pug & Stylus
    If you have a bit of Nodejs SSR background, you would already be accustomed to templating libraries like Pug, Handlebars, EJS, etc. If you’re from a PHP background you would be familiar with the Blade templating engine. These templating libraries basically help you render dynamic data from the backend on the frontend. They also help you generate markup with loops based on conditions. - Source: dev.to / 28 days ago
  • Just Normal Web Things
    The right way to start is with HTML and motherfucking web site. https://motherfuckingwebsite.com/ Really. At this point this is what web sites should strive to be. Pug is a great way to write HTML by hand. I integrated it with GitHub Pages so pug sources get compiled to HTML and published when commits are pushed. Great experience. https://pugjs.org/ - Source: Hacker News / 9 months ago
  • Migrate Your Express Application to Fastify
    To illustrate the process of migrating from Express to Fastify, we have prepared a demo application. This application utilizes Express, Mongoose, and Pug to create a URL Shortener app as follows:. - Source: dev.to / 10 months ago
  • Simplify Form Development with Smarkform!
    Disclaimer: The markup of CodePen examples is still in Pug. However, you can view it compiled as HTML by opening the code tab menu and selecting "View compiled HTML" (But, by the way, if you are not already familiar with Pug Templates, I strongly advise you to check them out). Source: 10 months ago
  • Pugs eye popped out
    I'm sorry about your doggie, but you have the wrong subreddit. The Pug template engine https://pugjs.org/ is discussed here exclusively. Dogs are not discussed here. Source: about 1 year ago
View more

What are some alternatives?

When comparing Haml and Pug, you can also consider the following products

Slim Language - Slim is a Ruby template language whose goal is reduce html syntax to the essential parts without becoming cryptic.

Jinja2 - Jinja2 is a template engine written in Python.

Handlebars - Handlebars is a JavaScript template library that is, more or less, based on ...

mustache - Mustache is a simple web template system with implementations available for ActionScript, C++...

EJS - An open source JavaScript Template library.

Apache Velocity - Velocity is a Java-based template engine.