Sha256: fccf27dbc37975861aff83385cebf05f9f63bbd4da6e9eb892b7a6ca17fe4732
Contents?: true
Size: 718 Bytes
Versions: 46
Compression:
Stored size: 718 Bytes
Contents
# Supports 0.2+, though Sinatra doesn't support 2.0, and Rails doesn't work with older versions module Skylight module Probes module Tilt class Probe def install ::Tilt::Template.class_eval do alias render_without_sk render def render(*args, &block) opts = { category: "view.render.template", title: options[:sky_virtual_path] || "Unknown template name" } Skylight.instrument(opts) do render_without_sk(*args, &block) end end end end end end register("Tilt::Template", "tilt/template", Tilt::Probe.new) end end
Version data entries
46 entries across 46 versions & 2 rubygems