Skip to content

Instantly share code, notes, and snippets.

@pezholio
Created September 21, 2012 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pezholio/3760717 to your computer and use it in GitHub Desktop.
Save pezholio/3760717 to your computer and use it in GitHub Desktop.
Getting Jsonify templates working in Sinatra / Padrino
# Goes in app/helpers/jsonify_padrino.rb
require 'sinatra/base'
require 'jsonify/tilt'
class JsonifySinatra < Sinatra::Base
helpers do
def jsonify(*args) render(:jsonify, *args) end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment