module Roda::RodaPlugins::StripPathPrefix

def self.configure(app, prefix=Dir.pwd)

Set the regexp to use when stripping prefixes from internal paths.
def self.configure(app, prefix=Dir.pwd)
  prefix += '/' unless prefix=~ /\/\z/
  app.opts[:strip_path_prefix] = /\A#{Regexp.escape(prefix)}/
end