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..]
Messages = messages
Generator = ctx.Generator
HtmxScript = htmxScript ctx.WebLog
IsAuthor = ctx.HasAccessLevel Author
IsEditor = ctx.HasAccessLevel Editor
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>
Content: string
/// <summary>A string to load the minified htmx script</summary>
HtmxScript: string
/// <summary>Whether the current user is an author</summary>
IsAuthor: bool
@@ -117,7 +114,6 @@ type AppViewContext = {
Generator = ""
Payload = obj ()
Content = ""
HtmxScript = ""
IsAuthor = false
IsEditor = false
IsWebLogAdmin = false