Skip to main content

runtime_declared_page_file_matches_id

Function runtime_declared_page_file_matches_id 

Source
pub fn runtime_declared_page_file_matches_id(path: &Path, page_id: &str) -> bool
Expand description

Matches a declared page filename to a validated page identifier.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::runtime_declared_page_file_matches_id(std::path::Path::new("fixture.json"), "home");