mirror of
https://github.com/zaphar/Heracles.git
synced 2025-07-23 04:29:48 -04:00
feat: Add htmx as javascript embed
This commit is contained in:
parent
716f235335
commit
5c03512e86
@ -18,7 +18,7 @@ use axum::{
|
||||
routing::get,
|
||||
Json, Router,
|
||||
};
|
||||
use maud::{html, Markup};
|
||||
use maud::{html, Markup, PreEscaped};
|
||||
use tracing::debug;
|
||||
|
||||
use crate::dashboard::Dashboard;
|
||||
@ -69,6 +69,7 @@ pub async fn index(State(config): Config) -> Markup {
|
||||
title { ("Heracles - Prometheus Unshackled") }
|
||||
}
|
||||
body {
|
||||
script { (PreEscaped(include_str!("../static/htmx.min.js"))) }
|
||||
(app(State(config.clone())).await)
|
||||
}
|
||||
}
|
||||
|
1
static/htmx.min.js
vendored
Normal file
1
static/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user