update + htmx

This commit is contained in:
JMARyA 2024-12-22 18:37:45 +01:00
parent 40d69b61e1
commit 291949b8c6
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
8 changed files with 277 additions and 10 deletions

8
src/htmx.rs Normal file
View file

@ -0,0 +1,8 @@
use rocket::get;
use crate::request::{StringResponse, respond_script};
#[get("/assets/htmx.min.js")]
pub fn htmx_script_route() -> StringResponse {
respond_script(include_str!("htmx.min.js"))
}