Skip to main content

route_template_match_into_mut_obj

Function route_template_match_into_mut_obj 

Source
pub fn route_template_match_into_mut_obj(
    output: &mut Map<String, Value>,
    template_path: &str,
    request_path: &str,
) -> bool
Expand description

Matches a route template and stores its path parameters in an object.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::json_commands::route_template_match_into_mut_obj holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::route_template_match_into_mut_obj(todo!(), "template.html", "/");