simple-css-0.0.4: simple binding of css and html

SimpleCss.Tricks.Shortcuts.Html

Synopsis

Documentation

p :: String -> Css HtmlSource

p tag

a :: String -> String -> Css HtmlSource

a tag

arguments

  • href
  • text

img :: String -> String -> Css HtmlSource

images

arguments :

  • alt atribute value
  • src atribute value

pre :: String -> Css HtmlSource

pre tag

h1 :: String -> Css HtmlSource

h1 tag

h2 :: String -> Css HtmlSource

h2 tag

h3 :: String -> Css HtmlSource

h3 tag

h4 :: String -> Css HtmlSource

h4 tag

h5 :: String -> Css HtmlSource

h5 tag

h6 :: String -> Css HtmlSource

h6 tag

ul :: [String] -> Css HtmlSource

ul tag

ol :: [String] -> Css HtmlSource

ol tag

aul :: [(String, String)] -> Css HtmlSource

ul tag with links

arguments : [(href, text)]

aol :: [(String, String)] -> Css HtmlSource

ol tag with links

arguments : [(href, text)]

table :: Maybe [String] -> [[String]] -> Css HtmlSource

table

arguments :

  • Maybe header
  • [rows]

writeBlazeCss :: String -> StyleSheet -> [((String, Html), Css Html)] -> IO ()Source

writes css and htmls to files

arguments :

  • css file name
  • global css StyleSheet i.e. ruleSets about body or some html elements
  • list of ((filename, html head sub elements), css)

initHtmls :: [String] -> [(String, Html)]Source

genereates html filenames and head's sublelements from list of titles