From a7cfb360e8405530d8b2ee2e4797e133a815c0a2 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Wed, 23 Feb 2022 21:43:18 -0500 Subject: [PATCH] Update READMEs and htmx script links --- src/Htmx/README.md | 2 +- src/ViewEngine.Htmx.Tests/Tests.fs | 17 ++++++++++++++++- src/ViewEngine.Htmx/Htmx.fs | 8 ++++---- src/ViewEngine.Htmx/README.md | 2 +- 4 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/Htmx/README.md b/src/Htmx/README.md index 78b5a2d..c1b95c7 100644 --- a/src/Htmx/README.md +++ b/src/Htmx/README.md @@ -2,7 +2,7 @@ This package enables server-side support for [htmx](https://htmx.org) within [Giraffe](https://giraffe.wiki) and ASP.NET's `HttpContext`. -**htmx version: 1.6.1** +**htmx version: 1.7.0** ### Setup diff --git a/src/ViewEngine.Htmx.Tests/Tests.fs b/src/ViewEngine.Htmx.Tests/Tests.fs index a96d268..86ed2cf 100644 --- a/src/ViewEngine.Htmx.Tests/Tests.fs +++ b/src/ViewEngine.Htmx.Tests/Tests.fs @@ -449,4 +449,19 @@ module Attributes = [] let ``_hxWs succeeds`` () = ul [ _hxWs "connect:/web-socket" ] [] |> shouldRender """""" - \ No newline at end of file + + +/// Tests for the Script module +module Script = + + [] + let ``Script.minified succeeds`` () = + let html = RenderView.AsString.htmlNode Script.minified + Assert.Equal ("""""", + html) + + [] + let ``Script.unminified succeeds`` () = + let html = RenderView.AsString.htmlNode Script.unminified + Assert.Equal ("""""", + html) diff --git a/src/ViewEngine.Htmx/Htmx.fs b/src/ViewEngine.Htmx/Htmx.fs index 27ad7e7..ff3e606 100644 --- a/src/ViewEngine.Htmx/Htmx.fs +++ b/src/ViewEngine.Htmx/Htmx.fs @@ -224,15 +224,15 @@ module Script = /// Script tag to load the minified version from unpkg.com let minified = script [ - _src "https://unpkg.com/htmx.org@1.6.1" - _integrity "sha384-tvG/2mnCFmGQzYC1Oh3qxQ7CkQ9kMzYjWZSNtrRZygHPDDqottzEJsqS4oUVodhW" + _src "https://unpkg.com/htmx.org@1.7.0" + _integrity "sha384-EzBXYPt0/T6gxNp0nuPtLkmRpmDBbjg6WmCUZRLXBBwYYmwAUxzlSGej0ARHX0Bo" _crossorigin "anonymous" ] [] /// Script tag to load the unminified version from unpkg.com let unminified = script [ - _src "https://unpkg.com/htmx.org@1.6.1/dist/htmx.js" - _integrity "sha384-7G9OE6gS4pBnBGH74HojjPQ8xOEGrdBeQc7JJOc58k6LG/YVfKXARd91w9715AYG" + _src "https://unpkg.com/htmx.org@1.7.0/dist/htmx.js" + _integrity "sha384-ESk4PjE7dwjGkEciohREmmf8rLMX0E95MKwxM3bvC90sZ3XbF2TELnVk2w7bX0d9" _crossorigin "anonymous" ] [] diff --git a/src/ViewEngine.Htmx/README.md b/src/ViewEngine.Htmx/README.md index 23918cd..6314948 100644 --- a/src/ViewEngine.Htmx/README.md +++ b/src/ViewEngine.Htmx/README.md @@ -2,7 +2,7 @@ This package enables [htmx](https://htmx.org) support within the [Giraffe](https://giraffe.wiki) view engine. -**htmx version: 1.6.1** +**htmx version: 1.7.0** ### Setup