miso
Copyright(C) 2016-2025 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Render

Description

 
Synopsis

Classes

class ToHtml a where Source #

Class for rendering HTML

Methods

toHtml :: a -> ByteString Source #

Instances

Instances details
ToHtml (View a) Source #

Render a View to a L.ByteString

Instance details

Defined in Miso.Render

Methods

toHtml :: View a -> ByteString Source #

ToHtml [View a] Source #

Render a [View] to a L.ByteString

Instance details

Defined in Miso.Render

Methods

toHtml :: [View a] -> ByteString Source #

Combinator

data HTML Source #

HTML MimeType used for servant APIs

type Home = "home" :> Get '[HTML] (Component model action)

Instances

Instances details
Accept HTML Source #
text/html;charset=utf-8
Instance details

Defined in Miso.Render

ToHtml a => MimeRender HTML a Source #

Render HTML from a servant API

Instance details

Defined in Miso.Render