From a4d49095d1fa40fc7152d069006d1121300235bb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 4 May 2024 14:15:24 +0200 Subject: embed font --- src/web.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/web.rs') diff --git a/src/web.rs b/src/web.rs index b0d2ca9..8aa7a2a 100644 --- a/src/web.rs +++ b/src/web.rs @@ -1,10 +1,9 @@ use crate::{log::LOG, Check, Config, Service, Status, STATUS}; -use axum::response::Html; use chrono::SubsecRound; use markup::{doctype, Render}; use std::{collections::BTreeMap, ops::Deref, sync::Arc}; -pub async fn send_html_page(config: Arc) -> Html { +pub async fn make_html_page(config: Arc) -> String { let mut out = String::new(); let status = STATUS.read().await; let status = status.deref(); @@ -54,7 +53,7 @@ pub async fn send_html_page(config: Arc) -> Html { } .render(&mut out) .unwrap(); - Html(out) + out } markup::define!( -- cgit v1.2.3-70-g09d2