migrate axum and askama
Some checks failed
test / cargo test (push) Failing after 1m10s

This commit is contained in:
2025-06-16 21:15:53 +02:00
parent 5ba193cd56
commit 6a5a9c890f
19 changed files with 194 additions and 112 deletions

View File

@ -1,10 +1,13 @@
use askama::Template;
use axum::http::StatusCode;
use axum::{
http::StatusCode,
response::{Html, IntoResponse},
};
#[derive(Template)]
#[template(path = "assets/animated_logo.html")]
pub struct AnimatedLogoTemplate {}
pub async fn render_animated_logo() -> Result<AnimatedLogoTemplate, StatusCode> {
Ok(AnimatedLogoTemplate {})
pub async fn render_animated_logo() -> Result<impl IntoResponse, StatusCode> {
Ok(Html(AnimatedLogoTemplate {}.render().unwrap()))
}