fn get_parsed_template(string_literal: &str, partials: Option<Partials>) -> Result<Template> {
    let mut parser = liquid::ParserBuilder::with_stdlib();
    if let Some(partials) = partials {
        parser = parser.partials(partials);
    }

    match parser
        .build()
        .expect("Unable to build template")
        .parse(string_literal)
    {
        Ok(template) => Ok(template),
        Err(err) => {
            eprintln!("{err}");

            Err(LeftError::LiquidParsingError)
        }
    }
}
Given some string literal and optional partials, calculate the template and return a useful
error
leftwm/src/bin/leftwm-state.rs