Templating Languages for HTML, CSS, and JavaScript

Submitted by Christoph Olszowka 2011-06-01 16:59:38 UTC
Source:  http://rubyrogues.com/003-rr-templating-languages-for-html-css-and-javascript/

Referenced projects

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

Sass

Sass makes CSS fun again. Sass is an extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more. It's translated to well-formatted, standard CSS using the command line tool or a web-framework plugin.

Rubygem sass

Total Downloads
32070721
Releases
298
Current Version
3.4.12
Released
2015-02-14 00:00:00 UTC
First Release
2010-09-22 04:00:00 UTC

Github nex3/sass

Watchers
3833
Forks
694
Development activity
Active
Last commit
2014-06-05 16:02:46 UTC
Contributors
30
Issues

coffee-script

Ruby CoffeeScript is a bridge to the JS CoffeeScript compiler.

Rubygem coffee-script

Total Downloads
19533045
Releases
26
Current Version
2.3.0
Released
2014-07-11 00:00:00 UTC
First Release
2009-12-24 08:00:00 UTC

Github josh/ruby-coffee-script

Watchers
153
Forks
34
Development activity
Less active
Last commit
2015-01-29 17:45:03 UTC
Top contributors
Contributors
6
Issues

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

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

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

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

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

Rdiscount

Fast Implementation of Gruber's Markdown in C

Rubygem rdiscount

Total Downloads
2036216
Releases
26
Current Version
2.1.8
Released
2015-02-01 00:00:00 UTC
First Release
2008-06-03 04:00:00 UTC
Depends on following gems
Depending Gems
310

Github rtomayko/rdiscount

Watchers
586
Forks
49
Development activity
Less active
Last commit
2013-04-26 03:44:25 UTC
Contributors
17
Issues
Wiki pages

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

Bluecloth

BlueCloth is a Ruby implementation of John Gruber's Markdown[http://daringfireball.net/projects/markdown/], a text-to-HTML conversion tool for web writers. To quote from the project page: Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). It borrows a naming convention and several helpings of interface from {Redcloth}[http://redcloth.org/], Why the Lucky Stiff's processor for a similar text-to-HTML conversion syntax called Textile[http://www.textism.com/tools/textile/]. BlueCloth 2 is a complete rewrite using David Parsons' Discount[http://www.pell.portland.or.us/~orc/Code/discount/] library, a C implementation of Markdown. I rewrote it using the extension for speed and accuracy; the original BlueCloth was a straight port from the Perl version that I wrote in a few days for my own use just to avoid having to shell out to Markdown.pl, and it was quite buggy and slow. I apologize to all the good people that sent me patches for it that were never released. Note that the new gem is called 'bluecloth' and the old one 'BlueCloth'. If you have both installed, you can ensure you're loading the new one with the 'gem' directive: # Load the 2.0 version gem 'bluecloth', '>= 2.0.0' # Load the 1.0 version gem 'BlueCloth' require 'bluecloth'

Rubygem bluecloth

Total Downloads
703061
Releases
17
Current Version
2.2.0
Released
2011-11-01 00:00:00 UTC
First Release
2009-04-07 10:00:00 UTC

Github ged/bluecloth

Watchers
61
Forks
9
Development activity
Inactive
Last commit
2011-11-01 19:38:53 UTC
Top contributors
Contributors
2

RedCloth

Textile parser for Ruby.

Rubygem RedCloth

Total Downloads
2738675
Releases
25
Current Version
4.2.9
Released
2011-11-27 05:00:00 UTC
First Release
2004-11-09 05:00:00 UTC

Github jgarber/redcloth

Watchers
408
Forks
75
Development activity
Inactive
Last commit
2014-09-24 01:22:47 UTC
×

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.