Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides a DSL of HTML elements
This DSL is entirely optional. You may use the Html
constuctors
provided by Shpadoinkle core and completely ignore this module.
You can write your code h
style and not use this module. But for
those who like a typed DSL with named functions for different tags
this is for you.
Each HTML element comes in 4 flavors. Delicous 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
So 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 #
textarea'_ :: Html m a Source #
progress'_ :: Html m a Source #
blockquote'_ :: Html m a Source #
blockquote_ :: [Html m a] -> Html m a Source #