App::Phoebe::StaticFiles - serve static files via a Phoebe wiki


Serving static files... Sometimes it's just easier. All the static files are served from /do/static, without regard to wiki spaces. You need to define routes that map a path to your filesystem.

    package App::Phoebe::StaticFiles;
    our %routes = (
      "zürich" => "/home/alex/Pictures/2020/Zürich",
      "amaryllis" => "/home/alex/Pictures/2021/Amaryllis", );
    use App::Phoebe::StaticFiles;

The setup does not allow recursive traversal of the file system.

You still need to add a link to /do/static somewhere in your wiki.