Vendor htmx 2.0.6 (#57)

This commit is contained in:
2025-07-04 18:18:13 -04:00
parent e8953d6072
commit 87fbb1a8c7
5 changed files with 34 additions and 14 deletions
+3 -2
View File
@@ -7,7 +7,6 @@ open System.IO
open System.Text
open Fluid
open Fluid.Values
open Giraffe.ViewEngine
open Microsoft.AspNetCore.Antiforgery
open Microsoft.Extensions.FileProviders
open MyWebLog
@@ -237,7 +236,9 @@ let parser =
fun writer encoder context ->
let webLog = context.App.WebLog
if webLog.AutoHtmx then
writer.WriteLine $"{s}{RenderView.AsString.htmlNode Htmx.Script.minified}"
context.App.WebLog.RelativeUrl(Permalink "htmx.min.js")
|> sprintf "%s<script src=\"%s\"></script>" s
|> writer.WriteLine
if assetExists "script.js" webLog then
themeAsset (StringValue "script.js") context
|> sprintf "%s<script src=\"%s\"></script>" s