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
9893525
Releases
140
Current Version
4.0.5
Released
2014-01-07 00:00:00 UTC
First Release
2006-12-17 08:00:00 UTC

Github haml/haml

Watchers
2335
Forks
383
Development activity
Active
Last commit
2014-02-15 03:11:34 UTC
Contributors
116
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
19656339
Releases
272
Current Version
3.2.19
Released
2014-04-05 00:00:00 UTC
First Release
2010-09-22 04:00:00 UTC

Github nex3/sass

Watchers
3134
Forks
565
Development activity
Less active
Last commit
2014-02-15 02:10:02 UTC
Contributors
115
Issues

coffee-script

Ruby CoffeeScript is a bridge to the JS CoffeeScript compiler.

Rubygem coffee-script

Total Downloads
12313693
Releases
25
Current Version
2.2.0
Released
2010-03-11 06:00:00 UTC
First Release
2009-12-24 08:00:00 UTC

Github josh/ruby-coffee-script

Watchers
132
Forks
30
Development activity
Inactive
Last commit
2012-07-17 14:28:22 UTC
Top contributors
Contributors
4
Issues

Tilt

Generic interface to multiple Ruby template engines

Rubygem tilt

Total Downloads
25677033
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
1242
Forks
140
Development activity
Less active
Last commit
2014-03-23 16:17:28 UTC
Contributors
57
Issues

Slim

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

Rubygem slim

Total Downloads
1852319
Releases
52
Current Version
2.0.2
Released
2013-10-27 00:00:00 UTC
First Release
2010-09-15 04:00:00 UTC
Depends on following gems
Depending Gems
140

Github slim-template/slim

Watchers
2522
Forks
203
Development activity
Less active
Last commit
2014-03-11 22:53:25 UTC
Contributors
36
Issues
Wiki pages

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
1176033
Releases
35
Current Version
0.99.5
Released
2013-11-11 00:00:00 UTC
First Release
2009-10-05 10:00:00 UTC
Depends on following gems
Depending Gems
130

Github defunkt/mustache

Watchers
1703
Forks
144
Development activity
Less active
Last commit
2014-02-05 23:20:07 UTC
Contributors
28
Issues
Wiki pages

Markaby

_why's markaby templating language

Rubygem markaby

Total Downloads
95247
Releases
13
Current Version
0.8.0
Released
2013-12-18 00:00:00 UTC
First Release
2006-01-17 07:00:00 UTC
Depends on following gems
Depending Gems
24

Github markaby/markaby

Watchers
79
Forks
30
Development activity
Less active
Last commit
2013-12-18 02:37:14 UTC
Contributors
7
Issues
Wiki pages

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
35087
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
4

Github ahoward/tagz

Watchers
25
Forks
1
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
1531186
Releases
24
Current Version
2.1.7
Released
2013-10-13 00:00:00 UTC
First Release
2008-06-03 04:00:00 UTC
Depends on following gems
Depending Gems
278

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
1327935
Releases
20
Current Version
2.5.5
Released
2014-01-10 00:00:00 UTC
First Release
2006-10-09 04:00:00 UTC
Depends on following gems
Depending Gems
127

Github Shopify/liquid

Watchers
2344
Forks
316
Development activity
Active
Last commit
2014-04-05 15:46:33 UTC
Contributors
65
Issues
Wiki pages

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
502598
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
58
Forks
8
Development activity
Inactive
Last commit
2011-11-01 19:38:53 UTC
Top contributors
Contributors
1

RedCloth

Textile parser for Ruby.

Rubygem RedCloth

Total Downloads
2136831
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
406
Forks
70
Development activity
Inactive
Last commit
2013-12-13 19:37:16 UTC
Contributors
23
Wiki pages
×

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.