Skip to main content

template_error_alert_html

Function template_error_alert_html 

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

Renders the shared inline error fragment used by declarative form pages.

§Parameters

§Returns

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

§Examples

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