Skip to main content

splice

Function splice 

Source
pub fn splice(base: &str, block: &str) -> Result<String, MarkerError>
Expand description

Splice a rendered block (BEGIN through END, newline-terminated) into the repos: sequence of a marker-free base, returning the new host text and the indentation the block’s entries should have used.

§Errors

MarkerError::NoReposKey when the base has no top-level repos: line.