Skip to main content

artifact_shared_template_path

Function artifact_shared_template_path 

Source
pub fn artifact_shared_template_path(
    app_root: &Path,
    relative_path: &str,
) -> Option<PathBuf>
Expand description

Resolves an app-owned artifact template without falling back to shell commands.

§Parameters

§Returns

Returns Some when crate::declarative::artifact_shared_template_path can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_runtime_compiler::declarative::artifact_shared_template_path(std::path::Path::new("apps/dev_docs"), "page");