pub fn write_generated(path: &Path, generated: &str) -> Result<()>
Write generated content, preserving custom block if file already exists.