Slim
Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic. (by slim-template)
Liquid
Liquid markup language. Safe, customer facing template language for flexible web apps. (by Shopify)
Slim | Liquid | |
---|---|---|
31 | 44 | |
5,331 | 11,314 | |
0.1% | 0.5% | |
5.7 | 9.0 | |
about 1 month ago | 9 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Slim
Posts with mentions or reviews of Slim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-04-30.
-
XRB alternatives - Haml, Slim, and Hamlit
4 projects | 30 Apr 2024
-
Building a syntax highlighting extension for VS Code
I spent a few days of my spare time building a VS Code extension that would bring better syntax highlighting for the Slim template language to the editor. I quite enjoyed most of the process so I’d like to share what I learned.
-
Rails 7.1 Released
I think they mean Server Side Rendering (normal rails controllers/views), and Slim is just the name of the templating engine. It's a little nicer than the default ERB. https://github.com/slim-template/slim
There's also SSR with react and other js frameworks, but I don't think that's what they meant.
- How to build a website without frameworks and tons of libraries
-
Do Modern Programming Languages Have to Care About Line Length?
Checkout slim https://github.com/slim-template/slim it's a templating language
-
Hotwire Question - Controller Lifecycle
And this is what the HTML looks like (I'm using slim):
-
How to use View Transitions in Hotwire Turbo
The template renders the tag and inside it the link and the counter itself (the Slim template language and Tailwind styling are used here, hopefully the notation is sufficiently self-explaining):
-
Slim: A HTML Templating Language
In this part of the series, let's explore another popular templating language, Slim.
-
Pug: A HTML Templating Language
Templating languages are widely used in Web development and two of the most popular ones are Pug and Slim. In this series, we're going to learn the basics of these two and hopefully they would help improve your workflow further.
-
Template Engine with percent sign in Rails?
You may want to checkout slim I'v tried ERB, SLIM, and HAML and absolutely sware by slim it's very easy to use and saves a ton of typing compared to ERB.
Liquid
Posts with mentions or reviews of Liquid.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-04-03.
-
Deploy a Laravel Application using CloudRay
Now, before running the scripts, you need to define values for the placeholders {{db_name}}, {{db_user}}, {{db_pass}}, {{github_access_token}}, {{github_user}}, {{repo_name}}, and {{domain}} used in the scrips. CloudRay processes all scripts as Liquid templates. This allows you to use variables dynamically across different servers.
-
Level Up Your Markdown: Embedding Dynamic Content with remark-react-liquid-tag
Liquid tags are special elements to use in markdown. They are custom embeds that are added via a {% %} syntax. Liquid is a templating language developed by Shopify.
-
From Zero to Liquid Hero: Mastering Shopify’s Templating Magic with Jekyll
Welcome to the Liquid party—where Shopify’s templating magic comes to life, and we’re about to have some serious fun. Liquid is a Ruby-powered, open-source language that’s all about making dynamic content a breeze, whether you’re crafting a blog with Jekyll or a slick Shopify store. Think of it as the friendly middleman between your raw data—like titles and tags—and a polished webpage, without any scary server-side shenanigans.
-
Managing LLM prompts in DotNet with DotPrompt
You might notice that the prompt has template instructions in there. To create this we used the Fluid library which is based on the Liquid template language from Shopify. It's got some great features in it and helps to make the prompt generation pretty powerful.
-
Instantly preview rendered liquid template
Liquid is a template language created by shopify. In my use case I use it for generate html that is almost similar looking but differs in data. So when iterating over my HTML, I need to preview the changes I made combined with my data.
-
Eleventy vs. Next.js for static site generation
Inside the blog directory, create an index.liquid file. This will be our blog’s homepage. Eleventy provides a number of options when selecting a template engine. For this project, we’ll use Liquid.
- How to Express Logic "and", "Or", "Not"?
-
How To Choose the Best Static Site Generator and Deploy it to Kinsta for Free
Templating engine: SSGs rely on templating engines to define the structure of web pages. These engines enable developers to create reusable templates and incorporate dynamic content. Popular templating engines include Liquid, Handlebars, Mustache, EJS, ERB, HAML, and Slim.
-
Count tickets opened per organization based on a custom field (ticket type/category)
Assuming I understand the ask, I think my approach would be to have a trigger fire when a ticket's custom field is set to "add user to the application." That trigger would notify a webhook. That webhook would be set to the Organization API endpoint with a payload that uses liquid markup to add 1 to the existing Organization's value.
-
How easy is ruby to learn from zero experience coding
For example, their theme templates use Liquid, which is a html templating system for Ruby. Activemerchant also was released by Shopify, and it provides a interface to major payment providers like PayPal.
What are some alternatives?
When comparing Slim and Liquid you can also consider the following projects:
Haml - HTML Abstraction Markup Language - A Markup Haiku
Mustache - Logic-less Ruby templates.
Hamlit - High Performance Haml Implementation
Sanitize - Ruby HTML and CSS sanitizer.
nunjucks - A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)