Skip to main content

splice

Function splice 

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

text with what lies from BEGIN to END replaced by block.

ยงErrors

No block, one without its end, or two blocks, each naming path.