macro_rules! make_handle_static {
(
dir_1: $dir_1:expr,
$(dir_2: $dir_2:expr,)?
prod_base_path: $prod_base_path:expr,
dev_base_path: $dev_base_path:expr$(,)?
) => { ... };
}
Expand description
Generates a handle_static
function that serves static content for HTTP servers.
Expects three arguments: an include_dir::Dir
object where the static content is served,
and two strings representing the (crate-local) paths to the production and development
static files.