fn compile_template(name: &str, content: &str) -> anyhow::Result<handlebars::template::Template> {
    if name.ends_with(".hbs") {
        handlebars::Template::compile(content).map_err(Into::into)
    } else {
        let mut template = handlebars::template::Template::new();
        template
            .elements
            .push(handlebars::template::TemplateElement::RawString(
                content.to_string(),
            ));
        template.name = Some(name.to_owned());
        Ok(template)
    }
}
Compiles a template based on the filename and content.

If the filename ends with ".hbs", it compiles the content as a Handlebars
template. Otherwise, it creates a raw string template.
crates/forge_services/src/template.rs