Skip to main content

apply_base_path_html

Function apply_base_path_html 

Source
pub fn apply_base_path_html(
    html: &str,
    base_path: Option<&str>,
) -> Option<String>
Expand description

Applies a base path to root-relative HTML URLs without touching external URLs.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::apply_base_path_html(todo!(), "/app");