module Roda::RodaPlugins::Assets::InstanceMethods

def read_asset_file(file, type)

the relative path to the file from the current directory.
Otherwise, render the file using the render plugin. +file+ should be
Return the content of the file if it is already of the correct type.
def read_asset_file(file, type)
  o = self.class.assets_opts
  content = if file.end_with?(".#{type}")
    ::File.read(file)
  else
    render_asset_file(file, :template_opts=>o[:"#{type}_opts"], :dependencies=>o[:expanded_dependencies][file])
  end
  o[:postprocessor] ? o[:postprocessor].call(file, type, content) : content
end