Method: ActionComponent::Component::Renderer#render

Defined in:
lib/actioncomponent/component/renderer.rb

#render(component_path:) ⇒ void



14
15
16
17
18
19
# File 'lib/actioncomponent/component/renderer.rb', line 14

def render(component_path:)
  file_path = template_path_from_component_path(component_path)
  rendered = super(view_model, file: file_path)
  rendered = apply_html_namespacing(rendered, component_path)
  ActionView::OutputBuffer.new(rendered)
end