Method: WebConsole::Template#render

Defined in:
lib/web_console/template.rb

#render(template) ⇒ Object

Render a template (inferred from template_paths) as a plain string.



44
45
46
47
# File 'lib/web_console/template.rb', line 44

def render(template)
  context = Context.new(template_paths, instance_values)
  context.render(template: template, layout: false)
end