Skip to main content

handle_page_route

Function handle_page_route 

Source
pub fn handle_page_route(app_root: &Path, page_id: &str) -> Option<String>
Expand description

Handles one page route by returning its declared template path.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::handle_page_route can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::handle_page_route(std::path::Path::new("apps/dev_docs"), "home");