pub fn get_template_for_path_atomic<'a, G: Html>(
raw_path: &str,
render_cfg: &HashMap<String, String>,
templates: &'a ArcTemplateMap<G>
) -> (Option<&'a Template<G>>, bool)
Expand description
A version of get_template_for_path
that accepts an ArcTemplateMap<G>
. This is used by match_route_atomic
, which should be used in scenarios in which the
template map needs to be passed betgween threads.
Warning: this returns a &Template<G>
rather than a Rc<Template<G>>
, and thus should only be used independently of the rest of Perseus (through match_route_atomic
).