slim-template/slim

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 3 minutes ago
Added to GitGenius on September 12th, 2026
Created on September 13th, 2010
Open Issues & Pull Requests: 22 (+0)
GitHub issues: Enabled
Number of forks: 498
Total Stargazers: 5,376 (+0)
Total Subscribers: 117 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Slim is a template language that reduces view syntax to essential parts while maintaining readability and avoiding cryptic notation.

Slim addresses the verbosity of standard HTML templates by eliminating unnecessary syntax elements like angle brackets and closing tags, instead relying on indentation to define structure. The language started as an exploration of minimal template syntax and evolved through community contributions to include features inspired by similar tools. It uses Temple for parsing and compilation, which provides a flexible architecture that allows extensions without monkey-patching. The tool integrates with major Ruby frameworks including Rails, Sinatra, and Rack through Tilt, making it a drop-in replacement for existing template engines.

Slim suits developers who value clean, maintainable template code and want to reduce boilerplate in their views. It works well in any Rails project running version 5 or later, as well as in Sinatra applications and other Rack-based frameworks. The README mentions Haml and Jade as influences on syntax design, indicating these as comparable alternatives, though Slim emphasizes its minimal approach as its distinguishing characteristic. The tool includes configurable shortcut tags for common patterns, automatic HTML escaping for safety, and support for embedded engines like Markdown. Logic-less mode allows teams to use Slim syntax without embedding Ruby logic in templates, and the translator plugin provides I18n support.

The project maintains continuous integration through GitHub Actions and has been tested across major Ruby implementations. Development activity shows ongoing maintenance with responsiveness to issues and a flexible architecture that welcomes community contributions and syntax extensions.