From 2906c20efab053b0de9f612f8d3d110accc8e73c Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Thu, 14 Jul 2022 18:55:52 -0400 Subject: [PATCH] Upgrade htmx to v1.8.0 (#18) --- src/MyWebLog.Data/MyWebLog.Data.fsproj | 2 +- src/MyWebLog/DotLiquidBespoke.fs | 24 ++++++++++++------------ src/MyWebLog/Handlers/Helpers.fs | 2 +- src/MyWebLog/MyWebLog.fsproj | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/MyWebLog.Data/MyWebLog.Data.fsproj b/src/MyWebLog.Data/MyWebLog.Data.fsproj index 846ab8a..53fccf5 100644 --- a/src/MyWebLog.Data/MyWebLog.Data.fsproj +++ b/src/MyWebLog.Data/MyWebLog.Data.fsproj @@ -11,7 +11,7 @@ - + diff --git a/src/MyWebLog/DotLiquidBespoke.fs b/src/MyWebLog/DotLiquidBespoke.fs index c004fa3..78786b3 100644 --- a/src/MyWebLog/DotLiquidBespoke.fs +++ b/src/MyWebLog/DotLiquidBespoke.fs @@ -222,17 +222,17 @@ let register () = Template.RegisterTag "page_foot" Template.RegisterTag "user_links" - [ // Domain types - typeof; typeof; typeof; typeof; typeof - typeof; typeof; typeof; typeof - // View models - typeof; typeof; typeof; typeof - typeof; typeof; typeof; typeof - typeof; typeof; typeof; typeof - typeof; typeof; typeof; typeof - typeof; typeof - // Framework types - typeof; typeof; typeof; typeof - typeof; typeof; typeof; typeof + [ // Domain types + typeof; typeof; typeof; typeof; typeof + typeof; typeof; typeof; typeof + // View models + typeof; typeof; typeof; typeof + typeof; typeof; typeof; typeof + typeof; typeof; typeof; typeof + typeof; typeof; typeof; typeof + typeof; typeof + // Framework types + typeof; typeof; typeof; typeof + typeof; typeof; typeof; typeof ] |> List.iter (fun it -> Template.RegisterSafeType (it, [| "*" |])) diff --git a/src/MyWebLog/Handlers/Helpers.fs b/src/MyWebLog/Handlers/Helpers.fs index 35e6d9b..e3efe15 100644 --- a/src/MyWebLog/Handlers/Helpers.fs +++ b/src/MyWebLog/Handlers/Helpers.fs @@ -138,7 +138,7 @@ let bareForTheme theme template next ctx = fun (hash : Hash) -> task { | Some detail -> $"{m.level}|||{m.message}|||{detail}" | None -> $"{m.level}|||{m.message}" |> setHttpHeader "X-Message") - withHxNoPush + withHxNoPushUrl htmlString (layoutTemplate.Render hash) } diff --git a/src/MyWebLog/MyWebLog.fsproj b/src/MyWebLog/MyWebLog.fsproj index f993c63..2883e6a 100644 --- a/src/MyWebLog/MyWebLog.fsproj +++ b/src/MyWebLog/MyWebLog.fsproj @@ -28,8 +28,8 @@ - - + +