htmx-0.1.0.0: Use htmx with various haskell libraries
Safe HaskellSafe-Inferred
LanguageHaskell2010

Htmx.Render

Description

This module defines a typeclass that doesn't have the historical baggage or connotations of other text serialization typeclasses (like Show or Display). The semantics of this class are supposed to be HTMX specific, i.e. serializing attribute values

Synopsis

Documentation

class Render a where Source #

A typeclass for rendering domain types into attribute values

Methods

render :: a -> Text Source #

Instances

Instances details
Render HtmxEvent Source # 
Instance details

Defined in Htmx.Event

Render HtmxExtension Source # 
Instance details

Defined in Htmx.Extension

Render Swap Source # 
Instance details

Defined in Htmx.Swap

Methods

render :: Swap -> Text Source #