use crate::Port;
#[cfg(not(feature = "watch"))]
const DEV_SCRIPT_RAW: &str = include_str!("no-watch.html");
#[cfg(feature = "watch")]
const DEV_SCRIPT_RAW: &str = include_str!("watch.html");
const FALLBACK_404_RAW: &str = const_str::concat!(include_str!("404.html"), "\n\n", DEV_SCRIPT_RAW);
pub fn dev_script(port_ws: Port) -> String {
DEV_SCRIPT_RAW.replace("{{PORT}}", &port_ws.to_string())
}
pub fn fallback_404(port_ws: Port) -> String {
FALLBACK_404_RAW.replace("{{PORT}}", &port_ws.to_string())
}