xhtml-combinators-0.3: Fast and easy to use XHTML combinators.

PortabilityGHC
Stabilityexperimental
Maintaineralasdair.armstrong@googlemail.com

Text.XHtmlCombinators.Render

Description

 

Synopsis

Documentation

data Escaper e Source

Constructors

Escaper 

Fields

escapeAttr :: Attr -> Attr
 
escapeText :: Text -> Text
 
childEscaper :: Text -> Escaper e
 
encoder :: Text -> e
 

renderT :: (Functor t, Monad t, Content c) => Escaper e -> XHtmlT t c -> t eSource

Quickly render a xhtml page to text.

This function will render the entire page on a single line, which is somewhat unreadable. On the plus side, it's relatively fast.

render :: Content c => Escaper e -> XHtml c -> eSource