module Htmx.Extension where
import Data.Text (Text)
import Htmx.Render
data HtmxExtension
=
|
AlpineMorph
|
ClassTools
|
ClientSideTemplates
|
Debug
|
|
HeadSupport
|
IncludeVals
|
JsonEnc
|
Idiomorph
|
LoadingStates
|
MethodOverride
|
MorphdomSwap
|
MultiSwap
|
PathDeps
|
Preload
|
RemoveMe
|
ResponseTargets
|
Restored
|
ServerSentEvents
|
WebSockets
|
PathParams
deriving (HtmxExtension -> HtmxExtension -> Bool
(HtmxExtension -> HtmxExtension -> Bool)
-> (HtmxExtension -> HtmxExtension -> Bool) -> Eq HtmxExtension
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HtmxExtension -> HtmxExtension -> Bool
== :: HtmxExtension -> HtmxExtension -> Bool
$c/= :: HtmxExtension -> HtmxExtension -> Bool
/= :: HtmxExtension -> HtmxExtension -> Bool
Eq, Eq HtmxExtension
Eq HtmxExtension =>
(HtmxExtension -> HtmxExtension -> Ordering)
-> (HtmxExtension -> HtmxExtension -> Bool)
-> (HtmxExtension -> HtmxExtension -> Bool)
-> (HtmxExtension -> HtmxExtension -> Bool)
-> (HtmxExtension -> HtmxExtension -> Bool)
-> (HtmxExtension -> HtmxExtension -> HtmxExtension)
-> (HtmxExtension -> HtmxExtension -> HtmxExtension)
-> Ord HtmxExtension
HtmxExtension -> HtmxExtension -> Bool
HtmxExtension -> HtmxExtension -> Ordering
HtmxExtension -> HtmxExtension -> HtmxExtension
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: HtmxExtension -> HtmxExtension -> Ordering
compare :: HtmxExtension -> HtmxExtension -> Ordering
$c< :: HtmxExtension -> HtmxExtension -> Bool
< :: HtmxExtension -> HtmxExtension -> Bool
$c<= :: HtmxExtension -> HtmxExtension -> Bool
<= :: HtmxExtension -> HtmxExtension -> Bool
$c> :: HtmxExtension -> HtmxExtension -> Bool
> :: HtmxExtension -> HtmxExtension -> Bool
$c>= :: HtmxExtension -> HtmxExtension -> Bool
>= :: HtmxExtension -> HtmxExtension -> Bool
$cmax :: HtmxExtension -> HtmxExtension -> HtmxExtension
max :: HtmxExtension -> HtmxExtension -> HtmxExtension
$cmin :: HtmxExtension -> HtmxExtension -> HtmxExtension
min :: HtmxExtension -> HtmxExtension -> HtmxExtension
Ord, Int -> HtmxExtension -> ShowS
[HtmxExtension] -> ShowS
HtmxExtension -> String
(Int -> HtmxExtension -> ShowS)
-> (HtmxExtension -> String)
-> ([HtmxExtension] -> ShowS)
-> Show HtmxExtension
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HtmxExtension -> ShowS
showsPrec :: Int -> HtmxExtension -> ShowS
$cshow :: HtmxExtension -> String
show :: HtmxExtension -> String
$cshowList :: [HtmxExtension] -> ShowS
showList :: [HtmxExtension] -> ShowS
Show)
instance Render HtmxExtension where
render :: HtmxExtension -> Text
render = \case
HtmxExtension
AjaxHeader -> Text
"ajax-header"
HtmxExtension
AlpineMorph -> Text
"alpine-morph"
HtmxExtension
ClassTools -> Text
"class-tools"
HtmxExtension
ClientSideTemplates -> Text
"client-side-templates"
HtmxExtension
Debug -> Text
"debug"
HtmxExtension
EventHeader -> Text
"event-header"
HtmxExtension
HeadSupport -> Text
"head-support"
HtmxExtension
IncludeVals -> Text
"include-vals"
HtmxExtension
JsonEnc -> Text
"json-enc"
HtmxExtension
Idiomorph -> Text
"idiomorph"
HtmxExtension
LoadingStates -> Text
"loading-states"
HtmxExtension
MethodOverride -> Text
"method-override"
HtmxExtension
MorphdomSwap -> Text
"morphdom-swap"
HtmxExtension
MultiSwap -> Text
"multi-swap"
HtmxExtension
PathDeps -> Text
"path-deps"
HtmxExtension
Preload -> Text
"preload"
HtmxExtension
RemoveMe -> Text
"remove-me"
HtmxExtension
ResponseTargets -> Text
"response-targets"
HtmxExtension
Restored -> Text
"restored"
HtmxExtension
ServerSentEvents -> Text
"server-sent-events"
HtmxExtension
WebSockets -> Text
"web-sockets"
HtmxExtension
PathParams -> Text
"path-params"