htmx-lucid-0.1.0.0: Use htmx with lucid
Safe HaskellSafe-Inferred
LanguageHaskell2010

Htmx.Lucid.Head

Description

This module defines utilities for installing HTMX and HTMX extensions via the head tag in your html document https://htmx.org/docs/#installing

Synopsis

Documentation

useHtmx :: Monad m => HtmlT m () Source #

Place in your head_ tag to use htmx attributes in your lucid template

useHtmxVersion :: Monad m => (Natural, Natural, Natural) -> HtmlT m () Source #

Choose the version of htmx to use using a 3-tuple representing semantic versioning

useHtmxExtension :: Monad m => HtmxExtension -> HtmlT m () Source #

Place in your template after useHtmx, but before where the extension is used via hxExt_ NOTE: This uses recommendedVersion as the version section of the URL

useHtmxExtensionV :: Monad m => (Natural, Natural, Natural) -> HtmxExtension -> HtmlT m () Source #

Same as useHtmxExt but lets you choose the version url

useHtmxExtensions :: Monad m => [HtmxExtension] -> HtmlT m () Source #

A typesafe version of useHtmxExtension based on the "included" extensions that the htmx codebase is tested against NOTE: This uses recommendedVersion as the version section of the URL

useHtmxExtensionsV :: Monad m => (Natural, Natural, Natural) -> [HtmxExtension] -> HtmlT m () Source #

Same as useHtmxExts but with a versioned url

recommendedVersion :: (Natural, Natural, Natural) Source #

This is the recommended version of htmx for using this library (lucid-htmx). It is the version of the documentation that the implementation is based off of.