Function try_render

Source
pub fn try_render(
    catalog: &Catalog,
    tracks: &[Id],
    base: Option<&Path>,
    style: Style,
) -> Result<String, String>
Expand description

Renders a complete selection, refusing paths M3U cannot represent.

A carriage return or newline in a file name could otherwise inject another entry or a directive. The CLI uses this before publishing any playlist.