pub(crate) fn render(
payload: &PathBuf,
mode: &str,
write: &Option<String>,
raw: bool,
quiet: bool
)Expand description
Renders the specified payload using the given mode and outputs the result.
Arguments
payload- APathBufcontaining the path to the payload file.mode- A string specifying the rendering mode.write- An optionalStringspecifying the path to write the output. If provided, the output will be written to the specified file.raw- A boolean indicating whether to output the result without any formatting.quiet- A boolean indicating whether to suppress any additional output and only display the result.