Skip to content

dpraimeyuu/Falco.Htmx

Repository files navigation

Falco.Htmx

NuGet Version build

Getting Started

An experimental Falco integration with htmx JS package.

falco-htmx-teaser

Falco.Htmx adds new attribute - Hx - that brings type-safe attributes of htmx to the Falco world, for example:

let resetButton =
        Elem.div [
                Attr.id ("clicker");
                Hx.target (CSS_Selector ("#click-section")); // new!
                Hx.post (Uri "/reset"); // new!
                Hx.trigger [Hx.Triggers.click (Hx.Triggers.Modifiers.once)] // new!
            ]
            [ Text.raw ("Reset") ]

Curious?

Here are some examples you might find interesting:

Kudos

Big thanks and huuuge kudos to @pim_brouwers and to @angel_d_munoz for help, inspiration and collaboration 🚀

Find a bug?

There's an issue for that.

Developing and testing Github Actions locally:

  1. Install act
  2. Run in the main directory of the package:
act release -s NUGET_APIKEY=<<ANY_API_KEY>> --artifact-server-path /tmp/artifacts

where:

  • <<ANY_API_KEY>> - put here anything as act will run it locally and we don't want to publish anything to nuget

License

Built with ♥ by Damian Plaza & Pim Brouwers. Licensed under Apache License 2.0.