Class: TemplateComponent
- Defined in:
- app/components/template_component.rb
Overview
Template - a plain <template> element.
Usage:
Template { text "content" }
Template(data: { nested_form_target: "template" }) { text "..." }
Constant Summary
Constants inherited from Component
Instance Method Summary collapse
Methods inherited from Component
default, #initialize, #render_in, slot
Constructor Details
This class inherits a constructor from Component
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'app/components/template_component.rb', line 10 def to_s tag.template(**) { @content } end |