static htmx

This commit is contained in:
JMARyA 2024-12-22 19:48:45 +01:00
parent e8dcb1dc77
commit 95c4cf6fe1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 168 additions and 26 deletions

View file

@ -54,6 +54,7 @@ async fn launch() -> _ {
.mount(
"/",
routes![
based::htmx::htmx_script_route,
pages::assets::video_file,
pages::assets::video_thumbnail,
pages::assets::fav_icon,

View file

@ -16,7 +16,7 @@ pub async fn render_page(
based::page::render_page(content, title, ctx, &based::page::Shell::new(
html! {
script src="https://cdn.tailwindcss.com" {};
script src="https://unpkg.com/htmx.org@2.0.3" integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous" {};
script src="/assets/htmx.min.js" {};
meta name="viewport" content="width=device-width, initial-scale=1.0";
},
html! {