pub fn write(target: &Path, config: &Config) -> Result<(), RkError>
Write the authored template with TOML-escaped scalar substitutions.
Returns invalid configuration or I/O failures before or during the atomic write.