HAML
HAML

403
269
262
Slim
Slim

185
145
120
Add tool

HAML vs Slim: What are the differences?

Developers describe HAML as "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. On the other hand, Slim is detailed as "A PHP micro framework". 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.

HAML belongs to "Languages" category of the tech stack, while Slim can be primarily classified under "Microframeworks (Backend)".

"Clean and simple" is the top reason why over 66 developers like HAML, while over 27 developers mention "Microframework" as the leading cause for choosing Slim.

HAML and Slim are both open source tools. It seems that Slim with 9.95K GitHub stars and 1.84K forks on GitHub has more adoption than HAML with 3.44K GitHub stars and 544 GitHub forks.

According to the StackShare community, HAML has a broader approval, being mentioned in 113 company stacks & 40 developers stacks; compared to Slim, which is listed in 29 company stacks and 21 developer stacks.

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?

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.

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose HAML?
Why do developers choose Slim?

Sign up to add, upvote and see more prosMake informed product decisions

What are the cons of using HAML?
What are the cons of using Slim?
    Be the first to leave a con
    What companies use HAML?
    What companies use Slim?

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

    What tools integrate with HAML?
    What tools integrate with Slim?
    What are some alternatives to HAML and Slim?
    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.
    PHP
    Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
    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.
    HTML5
    HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    See all alternatives
    Decisions about HAML and Slim
    No stack decisions found
    Interest over time
    Reviews of HAML and Slim
    No reviews found
    How developers use HAML and Slim
    Avatar of StackShare
    StackShare uses HAMLHAML

    Personally, I really like HAML. Not having to use open and close tags is a huge time saver. As a result, writing markup with HAML is much more pleasant. HAML essentially forces you to be very strict about spacing, organization, and structure. It also makes the markup easier to read. Protip: I use this pretty frequently: htmltohaml.com

    Avatar of Tristan Bailey
    Tristan Bailey uses SlimSlim

    Knocking up apis and smaller than laravel work projects

    Avatar of InApplet
    InApplet uses SlimSlim

    Framework usado no código da aplicação principal

    Avatar of Takkaa
    Takkaa uses SlimSlim

    we create our API with this microframework

    Avatar of Björn Pfoster
    Björn Pfoster uses SlimSlim

    A fast, slim and scalable PHP Framework

    How much does HAML cost?
    How much does Slim cost?
    Pricing unavailable
    Pricing unavailable
    News about HAML
    More news
    News about Slim
    More news