Safe Haskell | None |
---|---|
Language | Haskell98 |
Ascetic
Text/Ascetic/HTML.hs
Wrappers for building HTML file represented using the Ascetic data structure.
- type Class = String
- type Selector = String
- type PseudoClass = Maybe String
- type Property = String
- type Value = String
- type DeclarationBlock = [(Property, Value)]
- data CSS = CSS [([Selector], PseudoClass, DeclarationBlock)]
- type HTML = Ascetic
- class ToHTML a where
- file :: HTML -> HTML -> HTML
- head :: [HTML] -> HTML
- meta_ :: [(Attribute, Value)] -> HTML
- style :: CSS -> HTML
- script :: String -> HTML
- script_ :: [(Attribute, Value)] -> String -> HTML
- body :: [HTML] -> HTML
- div :: [HTML] -> HTML
- div_ :: [(Attribute, Value)] -> [HTML] -> HTML
- span :: [HTML] -> HTML
- span_ :: [(Attribute, Value)] -> [HTML] -> HTML
- content :: String -> HTML
- td :: HTML -> HTML
- tr :: [HTML] -> HTML
- table :: [HTML] -> HTML
- conc :: [HTML] -> HTML
- bold :: HTML -> HTML
Documentation
type PseudoClass = Maybe String Source
type DeclarationBlock = [(Property, Value)] Source
CSS [([Selector], PseudoClass, DeclarationBlock)] |