WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.Source codeContentsIndex
WASH.HTML.HTMLBase
Synopsis
data BT
= STATIC
| DYNAMIC
| TOPLEVEL
data ATTR_ = ATTR_ {
attr_BT :: BT
attr_value_BT :: BT
attr_name :: String
attr_value :: String
}
data ELEMENT_
= ELEMENT_ {
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
elems :: [ELEMENT_]
}
| EMPTY_ {
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
}
| CDATA_ {
elem_BT :: BT
elem_cdata :: String
}
| COMMENT_ {
elem_BT :: BT
elem_comment :: String
}
| DOCTYPE_ {
elem_BT :: BT
doctype :: [String]
elems :: [ELEMENT_]
}
data CDATA_OPTIONS
= CDATA_ENCODED
| CDATA_FORMATTED
shows_attributes :: [ATTR_] -> ShowS
shows_attribute :: ATTR_ -> ShowS
shows_elements :: [ELEMENT_] -> ShowS
shows_element :: ELEMENT_ -> ShowS
commentEncode :: String -> ShowS
htmlEncode :: String -> String
htmlAttr :: String -> ShowS
Documentation
data BT Source
Constructors
STATIC
DYNAMIC
TOPLEVEL
data ATTR_ Source
Constructors
ATTR_
attr_BT :: BT
attr_value_BT :: BT
attr_name :: String
attr_value :: String
data ELEMENT_ Source
Constructors
ELEMENT_
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
elems :: [ELEMENT_]
EMPTY_
elem_BT :: BT
tag :: String
attrs :: [ATTR_]
CDATA_
elem_BT :: BT
elem_cdata :: String
COMMENT_
elem_BT :: BT
elem_comment :: String
DOCTYPE_
elem_BT :: BT
doctype :: [String]
elems :: [ELEMENT_]
data CDATA_OPTIONS Source
Constructors
CDATA_ENCODED
CDATA_FORMATTED
shows_attributes :: [ATTR_] -> ShowSSource
shows_attribute :: ATTR_ -> ShowSSource
shows_elements :: [ELEMENT_] -> ShowSSource
shows_element :: ELEMENT_ -> ShowSSource
commentEncode :: String -> ShowSSource
removes illegal characters and sequences of -- from comment
htmlEncode :: String -> StringSource
htmlAttr :: String -> ShowSSource
Produced by Haddock version 2.6.1