html-minimalist-0.12: Minimalist haskell html library

Safe HaskellNone

Text.HTML.Light.Composite

Contents

Description

Composite constructors and constants.

Synopsis

Attributes

add_attrs_c :: [Attr] -> Content -> ContentSource

Variant on add_attrs lifted to Content.

Meta elements

meta_content_type :: String -> ContentSource

Set content-type.

meta_author :: String -> ContentSource

Set author.

meta_description :: String -> ContentSource

Set description.

meta_viewport :: String -> ContentSource

Set meta_viewport.

Link elements

link_type_str :: Link_Type -> StringSource

HTML name for Link_Type.

 link_type_str Link_Stylesheet == "stylesheet"

link_ty :: Link_Type -> [Attr] -> ContentSource

Variant on link with enumerated type value.

link_css :: String -> String -> ContentSource

Set CSS stylesheet for given media.

link_rss :: String -> String -> ContentSource

Set RSS alternate with given title.

Script elements

script_js :: String -> ContentSource

Embed javascript.

script_js_src :: FilePath -> ContentSource

Source javascript.

Validators

w3_html_validator :: StringSource

W3.org HTML validator.

w3_css_validator :: StringSource

W3.org CSS validator.

w3_rss_validator :: String -> StringSource

W3.org CSS validator.

 w3_rss_validator "http://haskell.org"

Input elements

input_ty :: Input_Type -> [Attr] -> ContentSource

Variant on input with enumerated type value.

input_hidden :: String -> String -> ContentSource

Hidden input with name and value.

input_submit :: String -> String -> ContentSource

Submit input with name and value.