Skip to main content

configure

Function configure 

Source
pub fn configure(
    doc: &Path,
    base: &Path,
    scope: &ServedFolder,
    configs: BTreeMap<String, Config>,
) -> Result<()>
Expand description

Binds the extensions configs to the document at doc, each package loaded from its bundle under base, and prepares each; with them the live session, where it is on in scope, unless the document’s live says enabled: false in its config or names a package of its own. Nothing to bind unbinds the document. A configuration already bound in scope is kept as it is.