Skip to content

Instantly share code, notes, and snippets.

@byroot
Created July 5, 2013 14:09
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 byroot/5934782 to your computer and use it in GitHub Desktop.
Save byroot/5934782 to your computer and use it in GitHub Desktop.
module Raven
class Report < Tilt::Template
def prepare
end
def evaluate(context, locals, &block)
if context.logical_path.include?('raven') || context.logical_path.include?('github-integration')
data
else
%Q{Raven.context(function() {(function() {#{data}}).call(window); });}
end
end
end
end
env.register_bundle_processor 'application/javascript', Raven::Report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment