Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a DSL of HTML elements.
This DSL is entirely optional. You may use the Html
constructors
provided by Shpadoinkle core and completely ignore this module.
You can write your code h
style and not use this module. For
those who like a typed DSL with named functions for different tags,
this is for you.
Each HTML element comes in 4 flavors. Delicious flavors. Plain (IE div
),
prime (IE 'div\''), underscore (IE div_
), and both (IE 'div_\''). The following should hold
x [] = x' flip x [] = x_ x [] [] = x'_ h "x" = x
Plain versions like div
are for cases where we care about properties
as well as children, 'div\'' is for cases where we care about children
but not properties, and div_
is for cases where we care about properties
but not children.
Due to OverloadedStrings
this yields a pleasent DSL
div "foo" [ "hiya" ] > <div class="foo">hiya</div>
Documentation
noscript'_ :: Html m a Source #
basefont'_ :: Html m a Source #
colgroup'_ :: Html m a Source #
menuitem'_ :: Html m a Source #
figcaption'_ :: Html m a Source #
figcaption_ :: [Html m a] -> Html m a Source #
noframes'_ :: Html m a Source #
frameset'_ :: Html m a Source #
datalist'_ :: Html m a Source #
fieldset'_ :: Html m a Source #
optgroup'_ :: Html m a Source #
textarea'_ :: Html m a Source #
progress'_ :: Html m a Source #
blockquote'_ :: Html m a Source #
blockquote_ :: [Html m a] -> Html m a Source #