Skip to content

Instantly share code, notes, and snippets.

@rconnelly
rconnelly / jsonball.rb
Created June 13, 2012 19:58 — forked from ahgittin/jsonball.rb
a jekyll tag to parse json files and objects for use as maps subsequently
require 'json'
# JSON parser tag, creating map for use in jekyll markdown
# Alex.Heneveld @ Cloudsoft Corp (remove spaces and add the .com)
# Released under APL 2.0
# usage: {% jsonball varname from TYPE PARAM %}
#
# where TYPE is one of {data,var,file,page}, described below