+ enable sub {
+ my $app = shift;
+ sub {
+ if (-f 'down.html') {
+ my $down_lit = HTML::Element::Library::super_literal read_file 'down.html';
+ my $tree = $down->clone;
+ $tree->fid('content')->replace_content($down_lit);
+ return [503, ['Content-type' => 'text/html; charset=utf-8'], [$tree->as_HTML]]
+ }
+ $app->(@_)
+ }
+ };