Remove htmx script from view context (#59)

This commit is contained in:
2026-07-06 08:32:38 -04:00
parent be6251b6ec
commit edb376c06c
2 changed files with 0 additions and 5 deletions
-1
View File
@@ -92,7 +92,6 @@ let private generateViewContext messages viewCtx (ctx: HttpContext) =
CurrentPage = ctx.Request.Path.Value[1..] CurrentPage = ctx.Request.Path.Value[1..]
Messages = messages Messages = messages
Generator = ctx.Generator Generator = ctx.Generator
HtmxScript = htmxScript ctx.WebLog
IsAuthor = ctx.HasAccessLevel Author IsAuthor = ctx.HasAccessLevel Author
IsEditor = ctx.HasAccessLevel Editor IsEditor = ctx.HasAccessLevel Editor
IsWebLogAdmin = ctx.HasAccessLevel WebLogAdmin IsWebLogAdmin = ctx.HasAccessLevel WebLogAdmin
-4
View File
@@ -47,9 +47,6 @@ type AppViewContext = {
/// <summary>The content of a page (wrapped when rendering the layout)</summary> /// <summary>The content of a page (wrapped when rendering the layout)</summary>
Content: string Content: string
/// <summary>A string to load the minified htmx script</summary>
HtmxScript: string
/// <summary>Whether the current user is an author</summary> /// <summary>Whether the current user is an author</summary>
IsAuthor: bool IsAuthor: bool
@@ -117,7 +114,6 @@ type AppViewContext = {
Generator = "" Generator = ""
Payload = obj () Payload = obj ()
Content = "" Content = ""
HtmxScript = ""
IsAuthor = false IsAuthor = false
IsEditor = false IsEditor = false
IsWebLogAdmin = false IsWebLogAdmin = false