feat: Add htmx as javascript embed

This commit is contained in:
Jeremy Wall 2024-02-06 16:03:04 -06:00
parent 716f235335
commit 5c03512e86
2 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,7 @@ use axum::{
routing::get, routing::get,
Json, Router, Json, Router,
}; };
use maud::{html, Markup}; use maud::{html, Markup, PreEscaped};
use tracing::debug; use tracing::debug;
use crate::dashboard::Dashboard; use crate::dashboard::Dashboard;
@ -69,6 +69,7 @@ pub async fn index(State(config): Config) -> Markup {
title { ("Heracles - Prometheus Unshackled") } title { ("Heracles - Prometheus Unshackled") }
} }
body { body {
script { (PreEscaped(include_str!("../static/htmx.min.js"))) }
(app(State(config.clone())).await) (app(State(config.clone())).await)
} }
} }

1
static/htmx.min.js vendored Normal file

File diff suppressed because one or more lines are too long