Update for htmx 1.7.0 (#4)

Fixes #3
This commit was merged in pull request #4.
This commit is contained in:
2022-02-23 21:54:51 -05:00
committed by GitHub
parent b5292bffc4
commit c587a28770
7 changed files with 51 additions and 9 deletions

View File

@@ -66,6 +66,10 @@ module Handlers =
let withHxPush : string -> HttpHandler =
setHttpHeader "HX-Push"
// Explicitly do not push a new URL into the history stack
let withHxNoPush : HttpHandler =
toLowerBool false |> withHxPush
/// Can be used to do a client-side redirect to a new location
let withHxRedirect : string -> HttpHandler =
setHttpHeader "HX-Redirect"