module Roda::RodaPlugins::Assets::InstanceMethods

def _compiled_assets_hash(type, return_ukey=false)

def _compiled_assets_hash(type, return_ukey=false)
  compiled = self.class.assets_opts[:compiled]
  type, *dirs = type if type.is_a?(Array)
  stype = type.to_s
  if dirs && !dirs.empty?
    key = dirs.join('.')
    ckey = "#{stype}.#{key}"
    if hash = ukey = compiled[ckey]
      ukey = "#{key}.#{ukey}"
    end
  else
    hash = ukey = compiled[stype]
  end
  return_ukey ? ukey : hash
end