Need advice about which tool to choose?Ask the StackShare community!

HAML

530
332
+ 1
267
Slim Lang

67
57
+ 1
50
Add tool

HAML vs Slim Lang: What are the differences?

What is HAML? HTML Abstraction Markup Language - A Markup Haiku. Haml is a markup language that’s used to cleanly and simply describe the HTML of any web document, without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ERB, and ASP. However, Haml avoids the need for explicitly coding HTML into the template, because it is actually an abstract description of the HTML, with some code to generate dynamic content.

What is Slim Lang? Template language whose goal is reduce the syntax to the essential parts without becoming cryptic. Slim is a template language whose goal is to reduce the view syntax to the essential parts without becoming cryptic. It started as an exercise to see how much could be removed from a standard html template (<, >, closing tags, etc...). As more people took an interest in Slim, the functionality grew and so did the flexibility of the syntax.

HAML belongs to "Languages" category of the tech stack, while Slim Lang can be primarily classified under "Templating Languages & Extensions".

"Clean and simple" is the top reason why over 66 developers like HAML, while over 10 developers mention "Easier to type and maintain than haml" as the leading cause for choosing Slim Lang.

HAML and Slim Lang are both open source tools. Slim Lang with 4.83K GitHub stars and 472 forks on GitHub appears to be more popular than HAML with 3.43K GitHub stars and 544 GitHub forks.

Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of HAML
Pros of Slim Lang
  • 68
    Clean and simple
  • 49
    No html open/close tags
  • 39
    Easier to write than ERB
  • 36
    Forces clean and readable code
  • 34
    Simpler markup language
  • 24
    Open Source
  • 16
    HTML Templating
  • 1
    You'll love it if you like Haikus
  • 13
    Easier to type and maintain than haml
  • 12
    Very clean and logical
  • 9
    Integrates with Rails by installing a single gem
  • 8
    Performs better than haml
  • 4
    Concise
  • 3
    Extensive package support in sublime text 2 and 3
  • 1
    Atom package support

Sign up to add or upvote prosMake informed product decisions

Cons of HAML
Cons of Slim Lang
  • 3
    It's not Pug
  • 2
    Not so good editor support
  • 1
    Overcomplicated syntax
  • 1
    Lots of syntactic corner cases
  • 1
    Easy to break nesting when reindenting or copy-pasting

Sign up to add or upvote consMake informed product decisions

What is HAML?

Haml is a markup language that’s used to cleanly and simply describe the HTML of any web document, without the use of inline code. Haml functions as a replacement for inline page templating systems such as PHP, ERB, and ASP. However, Haml avoids the need for explicitly coding HTML into the template, because it is actually an abstract description of the HTML, with some code to generate dynamic content.

What is Slim Lang?

Slim is a template language whose goal is to reduce the view syntax to the essential parts without becoming cryptic. It started as an exercise to see how much could be removed from a standard html template (<, >, closing tags, etc...). As more people took an interest in Slim, the functionality grew and so did the flexibility of the syntax.

Need advice about which tool to choose?Ask the StackShare community!

What companies use HAML?
What companies use Slim Lang?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with HAML?
What tools integrate with Slim Lang?

Blog Posts

What are some alternatives to HAML and Slim Lang?
Slim
Slim is easy to use for both beginners and professionals. Slim favors cleanliness over terseness and common cases over edge cases. Its interface is simple, intuitive, and extensively documented — both online and in the code itself.
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.
YAML
A human-readable data-serialization language. It is commonly used for configuration files, but could be used in many applications where data is being stored or transmitted.
JavaScript
JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
Python
Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
See all alternatives