Skip to main content

write_output

Function write_output 

Source
pub fn write_output(content: &str, dest: Option<&str>) -> Result<()>
Expand description

Write the serialized output content to dest if Some, else to stdout. Creates parent directories as needed.

Used by latexml_oxide.rs’s main() (XML-input mode included) for the “write a single HTML/XML file” exit path. For the zip-archive exit path, use crate::pack::pack_archive.