Skip to main content

Template Engines




Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML that's designed to express the structure of documents in a non-repetitive, elegant, and easy way by using indentation rather than closing tags and allowing Ruby to be embedded with ease. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.

haml 35,689,531 Downloads Last release

haml/haml Last commit


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

slim 12,825,520 Downloads Last release

slim-template/slim Last commit


A secure, non-evaling end user template engine with aesthetic markup.

liquid 9,082,989 Downloads Last release

Shopify/liquid Last commit


Generic interface to multiple Ruby template engines

tilt 136,059,388 Downloads Last release

rtomayko/tilt Last commit


Inspired by ctemplate, Mustache is a framework-agnostic way to render logic-free views. As ctemplates says, "It emphasizes separating logic from presentation: it is impossible to embed application logic in this template language. Think of Mustache as a replacement for your views. Instead of views consisting of ERB or HAML with random helpers and arbitrary logic, your views are broken into two parts: a Ruby class and an HTML template.

mustache 9,302,396 Downloads Last release

mustache/mustache Last commit

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.