This commit is contained in:
maurice committed 2026-11-14 18:20:29 +01:00
1 parent 35e7259775
commit b444b5759d
17 files changed
+1043 -31

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
use askama::Template;
use askama_web::WebTemplate;
use axum::http::StatusCode;
use irosashi::Highlighter;
#[derive(Template, WebTemplate)]
#[template(path = "gui.html")]
pub struct GuiPage {
languages: Vec<String>,
}
pub async fn gui_page() -> Result<GuiPage, StatusCode> {
let highlighter = Highlighter::new().map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
Ok(GuiPage {
languages: highlighter.languages(),
})
}