Software Alternatives, Accelerators & Startups

Haml

HTML Abstraction Markup Language - A Markup Haiku.

Haml

Haml Reviews and Details

This page is designed to help you find out whether Haml is good and if it is the right choice for you.

Screenshots and images

  • Haml Landing page
    Landing page //
    2021-09-22

Features & Specs

  1. 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.

  2. 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.

  3. 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.

  4. Whitespace Sensitivity

    The indentation-based syntax reduces clutter by removing the need for explicit closing tags, curly braces, and other traditional HTML structure elements.

  5. Maintaining Consistency

    The enforced indentation and structure positively guide developers towards structured and consistent code, which can be enforced across a team.

Badges

Promote Haml. You can add any of these badges on your website.

SaaSHub badge
Show embed code
SaaSHub badge
Show embed code

Videos

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

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about Haml and what they use it for.
  • Douglas Hofstadter on Lisp (1983)
    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
  • A RuboCop Configuration Tailored for Phlex
    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
  • 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 / over 2 years 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 / over 2 years 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 / over 2 years 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: over 3 years 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 / over 3 years ago
  • Anyone from a Typescript/React background who tried out Rust for the 1st time?
    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
  • Why must closing tags in HTML and XML contain the name of the tag being closed, if the tag being closed can be determined by the order they were opened?
    You donโ€™t even need closing tags. Both Haml and Jade do away with closing tags altogether. Source: over 3 years ago
  • I taught the chat bot an alternative syntax for HTML, called HBML, basically just braces instead of tags... we are so screwed
    Your HBML is similar to HAML - is it time for HCML? Https://haml.info/. Source: over 3 years ago
  • I taught the chat bot an alternative syntax for HTML, called HBML, basically just braces instead of tags... we are so screwed
    It's quite similar to HAML if you want to write websites with that for real. Source: over 3 years ago
  • Setup Vite, Svelte, Inertia, Stimulus, Bootstrap / Foundation on Rails-7 (Overview)
    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
  • EMLI: A new language that compiles to HTML
    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
  • Is there a HAML implementation for use with Python and Django
    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
  • Is there a way to use Ruby in HTML code, similar to PHP?
    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
  • Is there a way to use Ruby in HTML code, similar to PHP?
    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
  • It seems Project Singularity was built with Amazon's APIs (from Episode 11).
    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
  • Why is ruby so fvcking great?
    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
  • Which is fastest? ERB vs. HAML vs. Slim
    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.

Suggest an article

Haml discussion

Log in or Post with

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.