module Roda::RodaPlugins::MultiPublic

def self.configure(app, directories, _=OPTS)

Use the given directories to setup servers. Any opts are passed to the public plugin.
def self.configure(app, directories, _=OPTS)
  roots = app.opts[:multi_public_servers] = (app.opts[:multi_public_servers] || {}).dup
  directories.each do |key, path|
    path, headers, mime = path
    roots[key] = RACK_FILES.new(app.expand_path(path), headers||{}, mime||'text/plain')
  end
  roots.freeze
end

def self.load_dependencies(app, _, opts=OPTS)

def self.load_dependencies(app, _, opts=OPTS)
  app.plugin(:public, opts)
end