Safe Haskell | Safe-Infered |
---|
- (!.) :: Attributable h => h -> AttributeValue -> h
- (!#) :: Attributable h => h -> AttributeValue -> h
- linesToHtml :: String -> Html
- htmlIntercalate :: Html -> [Html] -> Html
- htmlCommas :: [Html] -> Html
- hrefSet :: URI -> String -> String -> Attribute
- hrefURI :: URI -> Attribute
- hrefAssoc :: String -> [(String, String)] -> Attribute
- css :: AttributeValue -> Html
- js :: AttributeValue -> Html
- linkTo :: AttributeValue -> Html -> Html
- postForm :: String -> Html -> Html
Documentation
(!.) :: Attributable h => h -> AttributeValue -> hSource
Add an class to an element.
(!#) :: Attributable h => h -> AttributeValue -> hSource
Add an id to an element.
linesToHtml :: String -> HtmlSource
Render a list of lines (separated by n) to HTML.
htmlIntercalate :: Html -> [Html] -> HtmlSource
Intercalate some HTML.
htmlCommas :: [Html] -> HtmlSource
Make a list of html into a comma separated html.
hrefAssoc :: String -> [(String, String)] -> AttributeSource
Create an href from a path and association list of parameters. Usage:
hrefAssoc "/search" [("query", "foo"), ("mode", "bar")]
Creates: href "/search?query=foo&mode=bar"
css :: AttributeValue -> HtmlSource
Link to a CSS stylesheet.
js :: AttributeValue -> HtmlSource
Link to a javscript file.
linkTo :: AttributeValue -> Html -> HtmlSource
Create a link.