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
36950054
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
39097972
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
1381
Forks
148
Development activity
Less active
Last commit
2015-02-11 09:31:19 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
13907934
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
2631
Forks
437
Development activity
Less active
Last commit
2015-02-04 13:48:32 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
3264072
Releases
59
Current Version
3.0.2
Released
2015-02-02 00:00:00 UTC
First Release
2010-09-15 04:00:00 UTC

Github slim-template/slim

Watchers
3161
Forks
275
Development activity
Less active
Last commit
2015-02-10 14:17:41 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
3112
Forks
419
Development activity
Less active
Last commit
2015-02-04 23:11:22 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
1952059
Releases
40
Current Version
1.0.1
Released
2015-02-23 00:00:00 UTC
First Release
2009-10-05 10:00:00 UTC
Depends on following gems
Depending Gems
163

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
3245646
Releases
34
Current Version
0.7.5
Released
2015-01-08 00:00:00 UTC
First Release
2009-12-14 23:00:00 UTC
Depends on following gems
Depending Gems
11

Github judofyr/temple

Watchers
269
Forks
20
Development activity
Less active
Last commit
2015-01-08 21:24:58 UTC
Contributors
16
Issues

handlebars_assets

A Railities Gem to compile hbs assets

Rubygem handlebars_assets

Total Downloads
650964
Releases
46
Current Version
0.20.0
Released
2015-02-23 00:00:00 UTC
First Release
2011-08-26 00:00:00 UTC

Github leshill/handlebars_assets

Watchers
590
Forks
127
Development activity
Less active
Last commit
2015-02-23 20:07:29 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
489563
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
337
Forks
76
Development activity
Inactive
Last commit
2014-10-20 20:06:58 UTC
First commit

Curly

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

Rubygem curly-templates

Total Downloads
20015
Releases
33
Current Version
2.3.2
Released
2015-01-13 00:00:00 UTC
First Release
2013-01-21 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github zendesk/curly

Watchers
472
Forks
21
Development activity
Active
Last commit
2015-02-18 09:44:40 UTC
First commit
Top contributors
Contributors
9
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
130314
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
106831
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
92
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
53396
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
178
Forks
17
Development activity
Less active
Last commit
2015-02-08 15:31:37 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
43260
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
28034
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

PageTemplate

A simple templating system for Web sites.

Rubygem PageTemplate

Total Downloads
20782
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

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
30500
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
Active
Last commit
2015-02-17 00:45:09 UTC
Top contributors
Contributors
2

cadenza

Powerful text templating language similar to Smarty/Liquid/Django

Rubygem cadenza

Total Downloads
5248
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
Inactive
Last commit
2014-08-19 13:03:16 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
13719
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
3997
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
11
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
7036
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
1829
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.