Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines utilities for installing HTMX and HTMX extensions via the head tag in your html document https://htmx.org/docs/#installing
Synopsis
- useHtmx :: Monad m => HtmlT m ()
- useHtmxVersion :: Monad m => (Natural, Natural, Natural) -> HtmlT m ()
- useHtmxExtension :: Monad m => HtmxExtension -> HtmlT m ()
- useHtmxExtensionV :: Monad m => (Natural, Natural, Natural) -> HtmxExtension -> HtmlT m ()
- useHtmxExtensions :: Monad m => [HtmxExtension] -> HtmlT m ()
- useHtmxExtensionsV :: Monad m => (Natural, Natural, Natural) -> [HtmxExtension] -> HtmlT m ()
- recommendedVersion :: (Natural, Natural, Natural)
- htmxSrc :: Text
- htmxSrcWithSemVer :: (Natural, Natural, Natural) -> Text
- htmxExtSrc :: (Natural, Natural, Natural) -> Text -> Text
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