#[macro_export]
macro_rules! handlebars_resources_initialize {
( $handlebars:expr, $(,)* ) => {{}};
( $handlebars:expr, $($name:expr => $path:expr),+ $(,)* ) => {{
let mut names = ::std::collections::HashSet::new();
$(
let name: &'static str = $name;
if !names.insert(name) {
panic!("The name `{}` is duplicated.", name);
}
$handlebars.register_template_file(name, $crate::manifest_dir_macros::not_directory_path!($path)).unwrap();
)+
}};
}
#[macro_export]
macro_rules! handlebars_response_cache {
($cm:expr, $etag_if_none_match:expr, $key:expr, $gen:block) => {{
#[allow(unused_variables)]
let __a = &$cm;
#[allow(unused_variables)]
let __a = &$key;
let etag_if_none_match: &$crate::EtagIfNoneMatch<'_> = &$etag_if_none_match;
let etag_if_none_match = ::std::clone::Clone::clone(etag_if_none_match);
let res = $gen;
res.check_etag(&etag_if_none_match)
}};
}