Method: Volt::StringTemplateRenderer#html

Defined in:
lib/volt/page/string_template_renderer.rb

#htmlObject

Render the template and get the current value



17
18
19
20
21
22
23
24
25
26
# File 'lib/volt/page/string_template_renderer.rb', line 17

def html
  @dependency.depend

  html = nil
  Computation.run_without_tracking do
    html = @target.to_html
  end

  html
end