• v1.8.5 277d93dd99

    1.8.5 Stable

    danieljsummers released this 2023-01-18 01:41:54 +00:00 | 38 commits to main since this release

    v1.8.5 supports htmx 1.8.5. New this release:

    All Packages

    The released packages now support both .NET 6 and .NET 7.

    Giraffe.ViewEngine.Htmx (client-side views)

    • The new _hxHistory flag generates the hx-history attribute (added in htmx 1.8.5).
    • Script.minified and Script.unminified load htmx 1.8.5
    Downloads
  • v1.8.4 061f6e5a4e

    1.8.4 Stable

    danieljsummers released this 2022-11-24 16:34:07 +00:00 | 39 commits to main since this release

    v1.8.4 supports htmx 1.8.4. New this release:

    Giraffe.ViewEngine.Htmx (client-side views)

    • The Script module generates links for v1.8.4.
    • The new _hxValidate flag generates the hx-validate attribute (added in htmx 1.8.1).
    • The new RenderFragment module enables fragment rendering.

    (No changes were required to Giraffe.Htmx.Common or Giraffe.Htmx, but both packages were updated for version 1.8.4.)

    Downloads
  • v1.8.0 4be5bad8ef

    1.8.0 Stable

    danieljsummers released this 2022-07-14 13:24:49 +00:00 | 42 commits to main since this release

    This release brings support for new headers and attributes added in htmx v1.8.0.

    Giraffe.Htmx (server-side)

    • Adds withHxReplaceUrl to send an HX-Replace-Url response header; this takes either a specific URL, the string true to replace with the response's URL, or the string false to explicitly not replace the browser's URL
    • Adds withHxNoReplaceUrl to send an HX-Replace-Url response header with the value of false
    • Adds withHxReswap to send an HX-Reswap response header; valid values are in the HxSwap module, which is visible when Giraffe.Htmx is opened
    • Adds withHxPushUrl to send an HX-Push-Url response header; this works as withHxReplaceUrl does, but for pushing a new URL into the history stack instead of replacing the current one
    • Adds withHxNoPushUrl to send an HX-Push-Url response header with the value of false
    • Obsoletes withHxPush and withHxNoPush, as these were changed to withHxPushUrl and withHxNoPushUrl. The former functions will set the new header, so they will continue to function without breaking; however, they should be replaced, as they will eventually be removed from this library (likely at v2).

    Giraffe.ViewEngine.Htmx (client-side views)

    • Updates Script.minified and Script.unminified nodes to load version 1.8.0.
    • Adds _hxReplaceUrl to generate an hx-replace-url attribute; valid values are "true", "false", or a URL
    • Adds _hxSelectOob to generate an hx-select-oob attribute; it takes a string with the selector for the content you wish to select from the out-of-band response
    • BREAKING CHANGE: Changed _hxPushUrl to be a standard attribute rather than a flag (attribute with no value); it now takes "true", "false", or a URL. To get the same functionality as v1.7.0, change _hxPushUrl to _hxPushUrl "true".
    • BREAKING CHANGE: The HxSwap support module now requires you to open Giraffe.Htmx before it is accessible. (It was moved to a common project, so that the same values could be visible from server-side and client-side. You do not need to install the Giraffe.Htmx package, just open the namespace.)
    Downloads
  • v1.7.0 c587a28770

    1.7.0 Stable

    danieljsummers released this 2022-02-24 02:54:51 +00:00 | 44 commits to main since this release

    This release incorporates changes in htmx v1.7.0:

    • A new withHxNoPush handler to force the HX-Push response header to have a value of false (explicitly preventing a URL from being pushed into the browser's history)
    • New _hxDisinherit and _hxSync; both take a string for the attribute value
    • Script.minified and Script.unminified now pull v1.7.0 of the htmx script
    Downloads
  • v1.6.1 86defea3c1

    1.6.1 Stable

    danieljsummers released this 2022-01-07 02:31:36 +00:00 | 46 commits to main since this release

    This is the initial production-ready release of this library. It supports htmx v1.6.1.

    Downloads
  • v0.9.3 9fcba06e75

    0.9.3 Pre-Release

    danieljsummers released this 2021-11-26 17:49:48 +00:00 | 48 commits to main since this release

    Add support for the HX-Retarget header added in htmx 1.6.1. (#2)

    (This only affected the Giraffe.Htmx package; the view engine package's latest version remains 0.9.2.)

    Downloads
  • v0.9.2 5906f3b295

    0.9.2 Pre-Release

    danieljsummers released this 2021-11-11 23:40:22 +00:00 | 49 commits to main since this release

    • Complete support modules for Giraffe.ViewEngine.Htmx
    • Add NuGet README files
    Downloads
  • v0.9.1 1eecabd5dd

    0.9.1 Pre-Release

    danieljsummers released this 2021-11-08 23:41:03 +00:00 | 51 commits to main since this release

    Initial pre-release of Giraffe/htmx extensions project

    Downloads