module Roda::RodaPlugins::Assets::RequestClassMethods

def unnest_assets_hash(h)

files for the given.
Recursively unnested the given assets hash, returning a single array of asset
def unnest_assets_hash(h)
  case h
  when Hash
    h.map do |k,v|
      assets = unnest_assets_hash(v)
      assets = assets.map{|x| "#{k}/#{x}"} if roda_class.assets_opts[:group_subdirs]
      assets
    end.flatten(1)
  else
    Array(h)
  end
end