use tera::{Context, Tera};

pub fn load_tera() -> Tera {
    let mut tera = Tera::default();
    tera.add_raw_template(
        "company_profile_summary",
        include_str!("../templates/company_profile_summary.txt"),
    )
    .expect("Failed to load company profile summary template");
    tera
}

#[allow(dead_code)]
pub fn render_prompt(
    tera: &Tera,
    template_name: &str,
    context: &Context,
) -> Result<String, tera::Error> {
    tera.render(template_name, context)
}
