class ViewComponent::Template
def compiled_source
def compiled_source handler = details.handler_class this_source = source this_source.rstrip! if @component.strip_trailing_whitespace? short_identifier = defined?(Rails.root) ? @path.sub("#{Rails.root}/", "") : @path format = self.format || DEFAULT_FORMAT type = ActionView::Template::Types[format] handler.call(DataWithSource.new(format:, identifier: @path, short_identifier:, type:), this_source) end