Readability
Haml syntax is designed to be clean and indentation-based, which can lead to more readable code compared to standard HTML, especially in complex projects.
DRY Principle
Haml encourages the DRY (Don't Repeat Yourself) principle by minimizing the need for closing tags and emphasizing reusable code snippets, reducing redundancy.
Embedded Ruby
Haml allows seamless embedding of Ruby code, making it a powerful tool for developers working in Ruby environments, as logic and view are more closely intertwined.
Whitespace Sensitivity
The indentation-based syntax reduces clutter by removing the need for explicit closing tags, curly braces, and other traditional HTML structure elements.
Maintaining Consistency
The enforced indentation and structure positively guide developers towards structured and consistent code, which can be enforced across a team.
Promote Haml. You can add any of these badges on your website.
We have collected here some useful links to help you find out if Haml is good.
Check the traffic stats of Haml on SimilarWeb. The key metrics to look for are: monthly visits, average visit duration, pages per visit, and traffic by country. Moreoever, check the traffic sources. For example "Direct" traffic is a good sign.
Check the "Domain Rating" of Haml on Ahrefs. The domain rating is a measure of the strength of a website's backlink profile on a scale from 0 to 100. It shows the strength of Haml's backlink profile compared to the other websites. In most cases a domain rating of 60+ is considered good and 70+ is considered very good.
Check the "Domain Authority" of Haml on MOZ. A website's domain authority (DA) is a search engine ranking score that predicts how well a website will rank on search engine result pages (SERPs). It is based on a 100-point logarithmic scale, with higher scores corresponding to a greater likelihood of ranking. This is another useful metric to check if a website is good.
The latest comments about Haml on Reddit. This can help you find out how popualr the product is and what people think about it.
I never suggested that I was the first person to think of this; not having dealt with any Lisp since (hmmm) 1990 via Scheme in my introductory CS 212 class at Cornell probably has something to do with my ignorance of the prior art in this area. I do like your approach of breadcrumbing me instead of giving me the answer, though... Best I can guess is "tooling" and simply that S-expressions are simply too embedded... - Source: Hacker News / almost 2 years ago
Phlex takes a more Ruby-centric approach to generating HTML by using Ruby classes and methods instead of traditional template files like ERB or HAML. While this is great for reusability and code organization (And writing more Ruby ๐คฉ), it can lead to long methods and classes, especially when building complex components or pages. Adding TailwindCSS into the mix further increases line lengths because of its... - Source: dev.to / almost 2 years ago
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 / over 2 years ago
> 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 / over 2 years ago
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 / over 2 years ago
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: over 3 years ago
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 / over 3 years ago
For templating, Maud is fast, gives compile-time well-formedness guarantees, and outputs minified HTML by default as a side-effect of it being based on Rust macros. (It's of a similar design philosophy to Slim and Haml). Source: over 3 years ago
You donโt even need closing tags. Both Haml and Jade do away with closing tags altogether. Source: over 3 years ago
Your HBML is similar to HAML - is it time for HCML? Https://haml.info/. Source: over 3 years ago
It's quite similar to HAML if you want to write websites with that for real. Source: over 3 years ago
Views are written in haml. If you work on erb there are converters like haml-to-erb. I am working on RubyMine, Apple-Notebook, production Server is Debian (for node-setup) and yarn. I tried to write less text and rather link to the sources. - Source: dev.to / almost 4 years ago
That's your opinion, you are entitled to it and I respect that, but I have my own, which I am also entitled to, and when many languages exist that have done a similar thing (See HAML, Shpaml, and AbstractML), I see no problem with continuing with my opinion. Source: over 4 years ago
I happened to stumble across HAML, an interesting and beautiful way to mark up contents and write templates for HTML. Source: over 4 years ago
Aside from that thereโs other Ruby template systems like Shopifyโs liquid, slim & haml (but you need to use it as an engine for use outside of Rails). Source: almost 5 years ago
Can't really talk about integration itself, but eRuby/ERB is the basic templating language for Ruby. There's also Haml (made by the same folks as Sass), which is a flavour of HTML that makes it a bit nicer to use alongside Ruby. Source: almost 5 years ago
Thatโs HAML https://haml.info/ which was initially popularized in Rails, a framework built on the programming language Ruby designed by Yukihiro Matsumoto so in a certain way the entirety of Vivy has been an obscure programming joke. Source: about 5 years ago
I find that really odd, given the absolute best templating experience I've ever had comes from slim, which is an indent-based ruby experience, as an evolution of haml, which was originally pitched as the html equivalent to the indent-based sass syntax. Source: about 5 years ago
In this article, weโll test and analyze the performance of three most popular Ruby templating engines: ERB (the default one), HAML, and SLIM. - Source: dev.to / about 5 years ago
Do you know an article comparing Haml to other products?
Suggest a link to a post with product alternatives.
Is Haml good? This is an informative page that will help you find out. Moreover, you can review and discuss Haml here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.