Class: InertiaBuilder::Handler
- Inherits:
-
Object
- Object
- InertiaBuilder::Handler
- Defined in:
- lib/inertia_builder/handler.rb
Class Method Summary collapse
Class Method Details
.call(template, source = nil) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/inertia_builder/handler.rb', line 5 def self.call(template, source = nil) source ||= template.source # Keep line numbers right in the error. %{__already_defined = defined?(prop); prop||=InertiaBuilder::PropBuilder.new(self);component=true;#{source}; InertiaBuilder::Renderer.new(self, prop.props, component).render unless __already_defined} end |