js bundle

This commit is contained in:
Robin Appelman 2023-04-09 17:35:30 +02:00
commit d0c1045550
7 changed files with 223 additions and 36 deletions

View file

@ -47,6 +47,8 @@ pub const fn guess_mime(path: &'static str) -> &'static str {
return "image/png";
} else if ends_with!(path, "css") {
return "text/css";
} else if ends_with!(path, "js") {
return "text/javascript";
}
return "text/plain";
}

View file

@ -52,7 +52,7 @@ impl Page for UploadPage {
}
(self.plugin_section())
}
script src = (script);
script src = (script) type = "text/javascript" {}
}
}
}