pub fn write_template(path: &Path, content: &str) -> Result<()>
Helper to write generated config string to disk