# slim-template/slim

Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic.

Repository: https://github.com/slim-template/slim
Canonical: https://ross.abutalabs.com/products/slim-template-slim
Homepage: https://slim-template.github.io
Language: Ruby
License: MIT
License Family: permissive
Topics: slim, ruby, template-engines
Last push: 2026-07-24T16:53:44+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 62, longevity 100
- inputs: {"age_days": 5834, "days_push": 40, "days_rel": 40, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5373, forks 497 (observed 2026-08-28T04:09:16.160276+00:00)

## What it is
Slim is a fast, lightweight Ruby templating language that reduces HTML view syntax to the essentials using indentation instead of closing tags. It integrates with Rails, Sinatra, and Rack via Tilt and is extensible through plugins like logic-less mode and I18n translation.

## Use cases
- write HTML views with minimal syntax in Rails
- replace ERB or Haml templates with a cleaner indentation-based language
- render templates in Sinatra or plain Rack apps
- use logic-less Mustache-style templates with Slim syntax
- embed Markdown or Textile inside HTML templates
- stream template rendering in Rails for performance

## When to choose
- you want terse, elegant HTML templates without closing tags
- you need a high-performance Ruby template engine comparable to ERB
- you want automatic HTML escaping and Rails html_safe support
- you prefer indentation-based markup like Haml or Pug

## When to avoid
- your team prefers standard HTML syntax with explicit tags
- you need a templating language outside the Ruby ecosystem
- you rely on tooling or editors without Slim support

## Facets
- artifact type: library
- maturity: stable
- function: templating, web-framework
- domain: web-development, frontend, developer-tools
- platform: ruby
- tags: template-engine, html, haml-alternative, rails, sinatra, indentation-based-syntax, web-server

## Member repositories
- slim-template/slim (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:16.160276+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:58:42.221872+00:00, confidence not recorded.
  - readme: https://github.com/slim-template/slim (fetched 2026-08-28T04:09:16.160276+00:00, sha 627011cd60fe)
  - homepage: https://slim-template.github.io (fetched 2026-08-29T08:52:49.866185+00:00, sha 37ce19af41ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
