Method: Rack::WebProfiler::View#result
- Defined in:
- lib/rack/web_profiler/view.rb
#result(variables = {}) ⇒ String
Get the result of view rendering.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/rack/web_profiler/view.rb', line 30 def result(variables = {}) unless @template.nil? templates = [read_template(@template)] templates << read_template(@layout) unless @layout.nil? templates.inject(nil) do |prev, temp| render(temp, variables) { prev } end end end |