render: updates for integration with frontends

This commit is contained in:
2026-04-23 20:39:26 -06:00
parent a2ac39db43
commit 1f8eed80c7
3 changed files with 41 additions and 19 deletions

View File

@@ -24,7 +24,7 @@ use std::{
};
use gix::open;
use tera::{ Context, Tera };
use tera::Tera;
use mintee::backend::git::repo_to_context;
@@ -81,7 +81,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let tera = Tera::new(templates.as_str())?;
let ctx = repo_to_context(open(current_dir()?)?)?;
println!("{}", tera.render("code.html", &ctx)?);
println!("{}", tera.render("repo.html", &ctx)?);
Ok(())
} else {