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

Text.XHtmlCombinators.Combinators

Synopsis

Documentation

class CData c whereSource

Methods

cdata :: Text -> cSource

text :: CData c => Text -> XHtml cSource

newtype Page Source

Constructors

Page 

Fields

pageToNode :: Node
 

Instances

newtype TopLevelContent Source

Constructors

TopLevel 

Fields

topLevelToNode :: Node
 

html'Source

Arguments

:: Bool

True for XML declaration, false to omit.

-> Attrs 
-> XHtml TopLevelContent 
-> XHtml Page 

newtype HeadContent Source

Constructors

Head 

Fields

headToNode :: Node
 

Instances

meta'Source

Arguments

:: Text

Required content attribute.

-> Attrs 
-> XHtml HeadContent 

link :: XHtml HeadContentSource

link is a bit useless without any attributes, but it's included anyway for consistency reasons.

style'Source

Arguments

:: Text

Required type attribute.

-> Attrs 
-> Text 
-> XHtml HeadContent 

script'Source

Arguments

:: Text

Required type attribute.

-> Attrs 
-> Text 
-> XHtml HeadContent 

newtype ListContent Source

Constructors

List 

Fields

listToNode :: Node
 

Instances

hr' :: Block c => Attrs -> XHtml cSource

hr :: Block c => XHtml cSource

ins' :: (Flow c, Content c) => Attrs -> XHtml c -> XHtml cSource

ins :: (Flow c, Content c) => XHtml c -> XHtml cSource

del' :: (Flow c, Content c) => Attrs -> XHtml c -> XHtml cSource

del :: (Flow c, Content c) => XHtml c -> XHtml cSource

bdo'Source

Arguments

:: Inline c 
=> Text

Required language direction code.

-> Attrs 
-> XHtml InlineContent 
-> XHtml c 

img'Source

Arguments

:: Flow c 
=> Text

Required src attribute.

-> Text

Required alt attribute.

-> Attrs 
-> XHtml c 

img :: Flow c => Text -> Text -> XHtml cSource

map'Source

Arguments

:: Flow c 
=> Text

Required id attribute.

-> Attrs 
-> XHtml MapContent 
-> XHtml c 

area'Source

Arguments

:: Text

Required alt attribute.

-> Attrs 
-> XHtml MapContent 

form'Source

Arguments

:: Block c 
=> Text

Required action attribute.

-> Attrs 
-> XHtml FlowContent 
-> XHtml c 

newtype OptionContent Source

Constructors

Option 

Fields

optionToNode :: Node
 

optgroup'Source

Arguments

:: Text

Required label attribute.

-> Attrs 
-> XHtml OptionContent 
-> XHtml OptionContent 

textarea'Source

Arguments

:: Inline c 
=> Int

Required rows attribute.

-> Int

Required cols attribute.

-> Attrs 
-> Text 
-> XHtml c 

textarea :: Inline c => Int -> Int -> Text -> XHtml cSource

newtype Table1Content Source

Constructors

Table1 

Fields

table1ToNode :: Node
 

newtype Table2Content Source

Constructors

Table2 

Fields

table2ToNode :: Node
 

newtype Table3Content Source

Constructors

Table3 

Fields

table3ToNode :: Node
 

newtype TableColContent Source

Constructors

TableCol 

Fields

tableColToNode :: Node