Software Alternatives & Reviews

Haml VS Mustache.js

Compare Haml VS Mustache.js and see what are their differences

Haml logo Haml

HTML Abstraction Markup Language - A Markup Haiku

Mustache.js logo Mustache.js

Minimal templating with {{mustaches}} in JavaScript - janl/mustache.js
  • Haml Landing page
    Landing page //
    2021-09-22
  • Mustache.js Landing page
    Landing page //
    2023-09-22

Haml videos

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

Mustache.js videos

Getting started with Mustache.js

More videos:

  • Tutorial - JavaScript and JSON tutorial: JavaScript templating with mustache.js | lynda.com

Category Popularity

0-100% (relative to Haml and Mustache.js)
Javascript UI Libraries
34 34%
66% 66
Programming
100 100%
0% 0
Development
21 21%
79% 79
Front-End Frameworks
0 0%
100% 100

User comments

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

Social recommendations and mentions

Based on our record, Haml should be more popular than Mustache.js. It has been mentiond 17 times since March 2021. 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

Mustache.js mentions (11)

  • NakedJSX - Use JSX without React
    JSX just a templating language in this case, right? No reactivity at all? What's the benefit against using something like https://github.com/janl/mustache.js/ ? Source: 11 months ago
  • Im not sure if im asking the right question here, but how do you create separate pages on a website?
    Nonetheless, I made ridiculous simple MRE(minimal reproducible example) for you: Https://codesandbox.io/s/distracted-gauss-gqfiue You might quickly realize the annoyance of html as strings, move to some template then, e.g: https://handlebarsjs.com/guide/ Also this example uses a library for the routing matching. Source: over 1 year ago
  • Managing application cache with react-query, and code generation.
    Mustache.js is a template engine for creating js templates. Cosmiconfig is a tool to make it convenient to work with the configuration. - Source: dev.to / almost 2 years ago
  • After an eternity, java.com has updated its homepage
    For a small page like that, they are using Oracle content management, knockoutjs, RedwoodJs, MarkedJs, MustacheJs, JQuery and Bootstrap. There's like 10+ layers or div, header and nav elements just to display the logo. They can't even properly anchor the footer at the bottom... Source: almost 2 years ago
  • Client-Side (JavaScript) Django/Jinja-like template inheritance
    Somebody asked about this before, and the only half-baked solution I found was to use Mustache's partials, which doesn't really do the job. Source: about 2 years ago
View more

What are some alternatives?

When comparing Haml and Mustache.js, you can also consider the following products

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

EJS - An open source JavaScript Template library.

Jinja2 - Jinja2 is a template engine written in Python.

Vash - Vash is a template engine that offers a swift flow between code and content using Razor Syntax

Pug - Pug is a robust, elegant, feature rich template engine for Node.js

FLAVE - Flave was created to bring ASP.