$_[0]->replace('');
}
}}
+ ->select('script[data-cur-page-js]')->${\sub {
+ if (-f $static_dir . "/page-js/" . $page->path . ".js") {
+ $_[0]->set_attribute(src => "/static/page-js/" . $page->path . ".js");
+ } else {
+ $_[0]->replace('');
+ }
+ }}
}
1;