render: updates for integration with frontends
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user