WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

Safe HaskellSafe-Infered

WASH.HTML.HTMLBase

Synopsis

Documentation

data BT Source

Constructors

STATIC 
DYNAMIC 
TOPLEVEL 

data ATTR_ Source

Constructors

ATTR_ 

Fields

attr_BT :: BT
 
attr_value_BT :: BT
 
attr_name :: String
 
attr_value :: String
 

Instances

Show ATTR_ 

attr_ :: String -> String -> ATTR_Source

attr_SS :: String -> String -> ATTR_Source

attr_SD :: String -> String -> ATTR_Source

attr_TS :: String -> String -> ATTR_Source

attr_TD :: String -> String -> ATTR_Source

data ELEMENT_ Source

Constructors

ELEMENT_ 

Fields

elem_BT :: BT
 
tag :: String
 
attrs :: [ATTR_]
 
elems :: [ELEMENT_]
 
EMPTY_ 

Fields

elem_BT :: BT
 
tag :: String
 
attrs :: [ATTR_]
 
CDATA_ 

Fields

elem_BT :: BT
 
elem_cdata :: String
 
COMMENT_ 

Fields

elem_BT :: BT
 
elem_comment :: String
 
DOCTYPE_ 

Fields

elem_BT :: BT
 
doctype :: [String]
 
elems :: [ELEMENT_]
 

Instances

element_ :: String -> [ATTR_] -> [ELEMENT_] -> ELEMENT_Source

element_S :: String -> [ATTR_] -> [ELEMENT_] -> ELEMENT_Source

element_T :: String -> [ATTR_] -> [ELEMENT_] -> ELEMENT_Source

empty_ :: String -> [ATTR_] -> ELEMENT_Source

empty_S :: String -> [ATTR_] -> ELEMENT_Source

empty_T :: String -> [ATTR_] -> ELEMENT_Source

makeEncoder :: [CDATA_OPTIONS] -> String -> StringSource

doctype_ :: [String] -> [ELEMENT_] -> ELEMENT_Source

doctype_S :: [String] -> [ELEMENT_] -> ELEMENT_Source

doctype_T :: [String] -> [ELEMENT_] -> ELEMENT_Source

add_attr_ :: ELEMENT_ -> ATTR_ -> ELEMENT_Source

Takes element and attribute. Attaches attribute to the element. Replaces prior attribute with same name.

commentEncode :: String -> ShowSSource

removes illegal characters and sequences of -- from comment

htmlEncode :: String -> StringSource

htmlAttr :: String -> ShowSSource