module Roda::RodaPlugins::Assets::ClassMethods

def _compile_assets(type)

all asset groups under the given type.
Internals of compile_assets, handling recursive calls for loading
def _compile_assets(type)
  type, *dirs = type if type.is_a?(Array)
  dirs ||= []
  files = assets_opts[type]
  dirs.each{|d| files = files[d]}
  case files
  when Hash
    files.each_key{|dir| _compile_assets([type] + dirs + [dir])}
  else
    files = Array(files)
    compile_assets_files(files, type, dirs) unless files.empty?
  end
end