From edb376c06c21548320522080f3c87bd30c1c87de Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Mon, 6 Jul 2026 08:32:38 -0400 Subject: [PATCH] Remove htmx script from view context (#59) --- src/MyWebLog/Handlers/Helpers.fs | 1 - src/MyWebLog/ViewContext.fs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/MyWebLog/Handlers/Helpers.fs b/src/MyWebLog/Handlers/Helpers.fs index fda3f6d..1a37357 100644 --- a/src/MyWebLog/Handlers/Helpers.fs +++ b/src/MyWebLog/Handlers/Helpers.fs @@ -92,7 +92,6 @@ let private generateViewContext messages viewCtx (ctx: HttpContext) = CurrentPage = ctx.Request.Path.Value[1..] Messages = messages Generator = ctx.Generator - HtmxScript = htmxScript ctx.WebLog IsAuthor = ctx.HasAccessLevel Author IsEditor = ctx.HasAccessLevel Editor IsWebLogAdmin = ctx.HasAccessLevel WebLogAdmin diff --git a/src/MyWebLog/ViewContext.fs b/src/MyWebLog/ViewContext.fs index ee85af6..01699eb 100644 --- a/src/MyWebLog/ViewContext.fs +++ b/src/MyWebLog/ViewContext.fs @@ -47,9 +47,6 @@ type AppViewContext = { /// The content of a page (wrapped when rendering the layout) Content: string - /// A string to load the minified htmx script - HtmxScript: string - /// Whether the current user is an author IsAuthor: bool @@ -117,7 +114,6 @@ type AppViewContext = { Generator = "" Payload = obj () Content = "" - HtmxScript = "" IsAuthor = false IsEditor = false IsWebLogAdmin = false