Skip to main content

embedded_template_source

Function embedded_template_source 

Source
pub fn embedded_template_source(name: &str) -> Option<&'static str>
Expand description

Re-exported from rustio-admin-assets so the framework’s public API (rustio_admin::embedded_template_names / rustio_admin::embedded_template_source, via lib.rs) is unchanged after the assets split. See that crate for the definitions. Return the byte-for-byte source of an embedded template by name, or None when no such template exists. Used by rustio-admin override to materialise a copy at <RUSTIO_TEMPLATE_DIR>/<name> so the operator can start editing without first having to find the framework source.