class ViewComponent::Compiler
def compile_template(template, handler)
def compile_template(template, handler) template.rstrip! if component_class.strip_trailing_whitespace? if handler.method(:call).parameters.length > 1 handler.call(component_class, template) # :nocov: else handler.call( OpenStruct.new( source: template, identifier: component_class.identifier, type: component_class.type ) ) end # :nocov: end