class ViewComponent::Template::File

def initialize(component:, details:, path:)

def initialize(component:, details:, path:)
  super(
    component: component,
    details: details,
    path: path,
    lineno: 0
  )
end

def source

Load file each time we look up #source in case the file has been modified
def source
  ::File.read(@path)
end

def type

def type
  :file
end