Vendor htmx 2.0.6 (#57)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user