htmx-lucid-0.2.0.1: 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 useHtmxExtension but lets you choose the version url

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

A version of useHtmxExtension that works on a list of extensions NOTE: This uses recommendedVersion as the version section of the URL

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

Same as useHtmxExtensions 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.

htmxSrc :: Text Source #

constant for the htmx cdn

htmxSrcWithSemVer :: (Natural, Natural, Natural) -> Text Source #

Creates a string with the htmx CDN specified to version

htmxExtSrc :: (Natural, Natural, Natural) -> Text -> Text Source #

Creates a string with the htmx extension CDN specified to version