Skip to main content

handle_template_declared_page_contract_command

Function handle_template_declared_page_contract_command 

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

Resolves a declared page contract for a command caller.

§Parameters

§Returns

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

§Examples

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