Remove htmx script from view context (#59)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user