jason - insanely simple JSON templates

Problem

There's no easy way to create JSON templates in Ruby.

Solution

Use Erubis to make the simplest thing that could possibly work.

Installation

geminstalljason

Usage

You write jason templates in a fashion similar to regular old JSON with a
notable exception: trailing commas in arrays and objects are automatically
removed. This allows you to easily create JSON templates using iterators.

Jason also redefines the <%= expr %> Erubis delimiter so that it converts the
expression to a JSON value by calling #to_json on the expression. If you'd
like to use regular interpolation, use the <%== expr %> delimiter instead.