Module: Rack::Bug::SpeedTrace::Render

Includes:
Render
Included in:
TraceRecord
Defined in:
lib/rack/bug/panels/speedtracer_panel/render.rb

Instance Method Summary collapse

Methods included from Render

#compile, #compile!, #method_name, #method_name_without_locals, #render_template, #signed_params

Instance Method Details

#compiled_source(filename) ⇒ Object



5
6
7
# File 'lib/rack/bug/panels/speedtracer_panel/render.rb', line 5

def compiled_source(filename)
  ::ERB.new(::File.read(::File.dirname(__FILE__) + "/../views/#{filename}.html.erb"), nil, "-").src
end