Template Engines

erubis

Erubis is an implementation of eRuby and has the following features: * Very fast, almost three times faster than ERB and about 10% faster than eruby. * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript) * Auto escaping support * Auto trimming spaces around '<% %>' * Embedded pattern changeable (default '<% %>') * Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>') * Context object available and easy to combine eRuby template with YAML datafile * Print statement available * Easy to extend and customize in subclass * Ruby on Rails support

Rubygem erubis

Total Downloads
41942672
Releases
20
Current Version
2.7.0
Released
2011-04-01 15:00:00 UTC
First Release
2006-01-31 05:00:00 UTC
Depends on following gems
Depending Gems
327

Tilt

Generic interface to multiple Ruby template engines

Rubygem tilt

Total Downloads
44660661
Releases
28
Current Version
2.0.1
Released
2014-03-21 00:00:00 UTC
First Release
2009-06-07 07:00:00 UTC

Github rtomayko/tilt

Watchers
1424
Forks
153
Development activity
Less active
Last commit
2015-05-22 17:48:24 UTC
Contributors
30
Issues

Haml

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.

Rubygem haml

Total Downloads
15651103
Releases
141
Current Version
4.0.6
Released
2014-12-01 00:00:00 UTC
First Release
2006-12-17 08:00:00 UTC

Github haml/haml

Watchers
2726
Forks
446
Development activity
Less active
Last commit
2015-06-13 05:56:39 UTC
Contributors
30
Issues

Slim

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

Rubygem slim

Total Downloads
3821395
Releases
61
Current Version
3.0.6
Released
2015-06-05 00:00:00 UTC
First Release
2010-09-15 04:00:00 UTC

Github slim-template/slim

Watchers
3355
Forks
289
Development activity
Active
Last commit
2015-06-07 12:51:48 UTC

Liquid

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

Rubygem liquid

Total Downloads
2187411
Releases
24
Current Version
2.6.2
Released
2015-01-23 00:00:00 UTC
First Release
2006-10-09 04:00:00 UTC
Depends on following gems
Depending Gems
188

Github Shopify/liquid

Watchers
3381
Forks
451
Development activity
Very active
Last commit
2015-06-08 18:38:46 UTC

Mustache

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.

Rubygem mustache

Total Downloads
2343562
Releases
41
Current Version
1.0.2
Released
2015-06-24 00:00:00 UTC
First Release
2009-10-05 10:00:00 UTC
Depends on following gems
Depending Gems
164

Github defunkt/mustache

Watchers
1788
Forks
159
Development activity
Less active
Last commit
2014-06-27 11:08:10 UTC

temple

Template compilation framework in Ruby

Rubygem temple

Total Downloads
3897069
Releases
35
Current Version
0.7.6
Released
2015-06-07 00:00:00 UTC
First Release
2009-12-14 23:00:00 UTC
Depends on following gems
Depending Gems
11

Github judofyr/temple

Watchers
304
Forks
20
Development activity
Less active
Last commit
2015-06-07 12:49:49 UTC
Contributors
18
Issues

handlebars_assets

A Railities Gem to compile hbs assets

Rubygem handlebars_assets

Total Downloads
777976
Releases
48
Current Version
0.20.2
Released
2015-05-08 00:00:00 UTC
First Release
2011-08-26 00:00:00 UTC

Github leshill/handlebars_assets

Watchers
618
Forks
129
Development activity
Less active
Last commit
2015-05-08 19:45:12 UTC
First commit

deface

Deface is a library that allows you to customize ERB, Haml and Slim views in a Rails application without editing the underlying view.

Rubygem deface

Total Downloads
554375
Releases
27
Current Version
1.0.1
Released
2014-09-09 00:00:00 UTC
First Release
2010-08-29 23:00:00 UTC

Github spree/deface

Watchers
362
Forks
88
Development activity
Less active
Last commit
2015-06-11 05:50:54 UTC
First commit

Curly

A view layer for your Rails apps that separates structure and logic.

Rubygem curly-templates

Total Downloads
24068
Releases
36
Current Version
2.5.0
Released
2015-05-19 00:00:00 UTC
First Release
2013-01-21 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github zendesk/curly

Watchers
513
Forks
21
Development activity
Less active
Last commit
2015-05-27 12:19:30 UTC
First commit
Contributors
11
Issues

Erector

Erector is a Builder-like view framework, inspired by Markaby but overcoming some of its flaws. In Erector all views are objects, not template files, which allows the full power of object-oriented programming (inheritance, modular decomposition, encapsulation) in views.

Rubygem erector

Total Downloads
151104
Releases
25
Current Version
0.10.0
Released
2014-04-14 00:00:00 UTC
First Release
2008-02-13 08:00:00 UTC

Github pivotal/erector

Watchers
159
Forks
33
Development activity
Inactive
Last commit
2013-02-08 15:37:58 UTC
Contributors
13
Issues

Markaby

_why's markaby templating language

Rubygem markaby

Total Downloads
112542
Releases
13
Current Version
0.8.0
Released
2013-12-18 00:00:00 UTC
First Release
2006-01-17 07:00:00 UTC

Github markaby/markaby

Watchers
97
Forks
29
Development activity
Inactive
Last commit
2013-12-18 02:37:14 UTC
Contributors
7
Issues

Markerb

Multipart templates made easy with Markdown + ERb

Rubygem markerb

Total Downloads
58292
Releases
4
Current Version
1.0.2
Released
2014-05-06 00:00:00 UTC
First Release
2011-04-25 22:00:00 UTC
Depends on following gems
Depending Gems
1

Github plataformatec/markerb

Watchers
185
Forks
17
Development activity
Less active
Last commit
2015-03-24 11:58:15 UTC

Parkaby

ParseTree meets Markaby

Github judofyr/parkaby

Watchers
101
Forks
2
Development activity
Inactive
Last commit
2014-03-23 07:30:13 UTC
Top contributors
Contributors
1
Issues

Laminate

Safe user-template system written in Ruby

Github scottpersinger/laminate

Watchers
42
Forks
2
Development activity
Inactive
Last commit
2009-09-09 00:10:19 UTC
Top contributors
Contributors
1
Issues

Tagz

tagz.rb is generates html, xml, or any sgml variant like a small ninja running across the backs of a herd of giraffes swatting of heads like a mark-up weedwacker. weighing in at less than 300 lines of code tagz.rb adds an html/xml/sgml syntax to ruby that is both unobtrusive, safe, and available globally to objects without the need for any builder or superfluous objects. tagz.rb is designed for applications that generate html to be able to do so easily in any context without heavyweight syntax or scoping issues, like a ninja sword through butter.

Rubygem tagz

Total Downloads
46212
Releases
34
Current Version
9.9.2
Released
2013-09-09 00:00:00 UTC
First Release
2007-07-17 06:00:00 UTC
Depends on following gems
Depending Gems
8

Github ahoward/tagz

Watchers
26
Forks
2
Development activity
Inactive
Last commit
2013-09-09 21:52:23 UTC
Top contributors
Contributors
1
Issues

wlang

WLang is a general-purpose *code generation*/*templating engine*. It's main aim is to help you generating web pages, sql queries, ruby code (that is, generating text in general) without having to worry too much about html entities encoding, sql back quoting, string escaping and the like. WLang proposes a generic engine that you can easily extend to fit your needs. It also proposes standard instantiations of this engine for common tasks such as rendering HTML web pages.

Rubygem wlang

Total Downloads
30652
Releases
20
Current Version
2.3.1
Released
2014-10-23 00:00:00 UTC
First Release
2010-01-13 23:00:00 UTC
Depending Gems
13

Github blambeau/wlang

Watchers
20
Forks
3
Development activity
Inactive
Last commit
2015-01-03 15:16:11 UTC
Top contributors
Contributors
3
Issues

inversion

Inversion is a templating system for Ruby. It uses the "Inversion of Control" principle to decouple the contents and structure of templates from the code that uses them, making it easier to separate concerns, keep your tests simple, and avoid polluting scopes with ephemeral data.

Rubygem inversion

Total Downloads
33465
Releases
31
Current Version
0.17.3
Released
2015-02-17 00:00:00 UTC
First Release
2011-08-15 00:00:00 UTC

Github ged/Inversion

Watchers
6
Forks
1
Development activity
Less active
Last commit
2015-02-28 03:11:21 UTC
Top contributors
Contributors
2

PageTemplate

A simple templating system for Web sites.

Rubygem PageTemplate

Total Downloads
21981
Releases
13
Current Version
2.2.3
Released
2006-06-20 07:00:00 UTC
First Release
2005-02-16 05:00:00 UTC
Depends on following gems
Depending Gems
1

cadenza

Powerful text templating language similar to Smarty/Liquid/Django

Rubygem cadenza

Total Downloads
5805
Releases
5
Current Version
0.7.2
Released
2012-10-29 00:00:00 UTC
First Release
2012-02-24 00:00:00 UTC
Depending Gems
1

Github whoward/Cadenza

Watchers
10
Forks
5
Development activity
Less active
Last commit
2015-03-22 04:07:33 UTC
First commit
Top contributors
Contributors
4
Issues

Ember

Ember (EMBEdded Ruby) is an [eRuby] template processor that allows debugging, reduces markup, and improves composability of eRuby templates.

Rubygem ember

Total Downloads
14446
Releases
7
Current Version
0.3.1
Released
2011-04-22 00:00:00 UTC
First Release
2009-05-04 07:00:00 UTC
Depends on following gems
Depending Gems
3

Github sunaku/ember

Watchers
4
Forks
2
Development activity
Inactive
Last commit
2011-04-22 07:08:03 UTC
Top contributors
Contributors
2
Issues

sweet

Sweet is a pre-compiled language based on Ruby and Python. Sweet makes possible to use all the class, defs, conditionals, global and local variables power of server-side languages, defining blocks by indentation like Python in your Sweet HTML markup. It comes with a SIC ( Sweet Interactive Console ) the you can test your code and ideas before really right and compile it.

Rubygem sweet-lang

Total Downloads
4279
Releases
4
Current Version
0.3.7
Released
2012-01-11 00:00:00 UTC
First Release
2011-12-13 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github joaomdmoura/sweet

Watchers
10
Forks
1
Development activity
Inactive
Last commit
2012-03-23 20:41:50 UTC
Top contributors
Contributors
1
Issues

HammerBuilder

Fast extensible ruby html5 builder

Rubygem hammer_builder

Total Downloads
7594
Releases
6
Current Version
0.3.2
Released
2013-05-17 00:00:00 UTC
First Release
2011-05-10 22:00:00 UTC
Depending Gems
0

Github ruby-hammer/hammer-builder

Watchers
8
Forks
0
Development activity
Inactive
Last commit
2013-05-17 13:03:27 UTC
Top contributors
Contributors
1
Issues

ruty

A Template-Engine inspired by the jinja engine

Rubygem ruty

Total Downloads
1925
Releases
1
Current Version
0.0.1
Released
2007-01-20 23:00:00 UTC
First Release
2007-01-20 23:00:00 UTC
Depends on following gems
Depending Gems
1
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.