Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
Created May 30, 2013 00:09
Show Gist options
  • Save mistydemeo/5674862 to your computer and use it in GitHub Desktop.
Save mistydemeo/5674862 to your computer and use it in GitHub Desktop.
require 'mustache'
require 'json'
template = "Why isn't {{Id}} showing up????"
json = <<-EOS
{
"Id": "ASDFKASDFJASDFKASDF"
}
EOS
puts Mustache.render(template, JSON.parse(json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment