{-# LANGUAGE OverloadedStrings #-}
module Miso.Html.Element
(
nodeHtml
, nodeHtmlKeyed
, h1_
, h2_
, h3_
, h4_
, h5_
, h6_
, div_
, p_
, hr_
, pre_
, blockquote_
, code_
, em_
, span_
, a_
, strong_
, i_
, b_
, u_
, sub_
, sup_
, br_
, ol_
, ul_
, li_
, liKeyed_
, dl_
, dt_
, dd_
, img_
, iframe_
, canvas_
, math_
, script_
, link_
, Miso.Html.Element.style_
, select_
, option_
, textarea_
, form_
, input_
, button_
, section_
, header_
, footer_
, nav_
, article_
, aside_
, address_
, main_
, body_
, figure_
, figcaption_
, table_
, caption_
, colgroup_
, col_
, tbody_
, thead_
, tfoot_
, tr_
, trKeyed_
, td_
, th_
, label_
, fieldset_
, legend_
, datalist_
, optgroup_
, keygen_
, output_
, progress_
, meter_
, center_
, audio_
, video_
, source_
, track_
, embed_
, object_
, param_
, ins_
, del_
, small_
, cite_
, dfn_
, abbr_
, time_
, var_
, samp_
, kbd_
, q_
, s_
, mark_
, ruby_
, rt_
, rp_
, bdi_
, bdo_
, wbr_
, details_
, summary_
, menuitem_
, menu_
) where
import Miso.Html.Types
import Miso.String (MisoString)
nodeHtml :: MisoString -> [Attribute action] -> [View action] -> View action
nodeHtml = flip (node HTML) Nothing
nodeHtmlKeyed :: MisoString -> Key -> [Attribute action] -> [View action] -> View action
nodeHtmlKeyed name = node HTML name . pure
div_ :: [Attribute action] -> [View action] -> View action
div_ = nodeHtml "div"
table_ :: [Attribute action] -> [View action] -> View action
table_ = nodeHtml "table"
thead_ :: [Attribute action] -> [View action] -> View action
thead_ = nodeHtml "thead"
tbody_ :: [Attribute action] -> [View action] -> View action
tbody_ = nodeHtml "tbody"
tr_ :: [Attribute action] -> [View action] -> View action
tr_ = nodeHtml "tr"
trKeyed_ :: Key -> [Attribute action] -> [View action] -> View action
trKeyed_ = node HTML "tr" . pure
th_ :: [Attribute action] -> [View action] -> View action
th_ = nodeHtml "th"
td_ :: [Attribute action] -> [View action] -> View action
td_ = nodeHtml "td"
tfoot_ :: [Attribute action] -> [View action] -> View action
tfoot_ = nodeHtml "tfoot"
section_ :: [Attribute action] -> [View action] -> View action
section_ = nodeHtml "section"
header_ :: [Attribute action] -> [View action] -> View action
header_ = nodeHtml "header"
footer_ :: [Attribute action] -> [View action] -> View action
footer_ = nodeHtml "footer"
button_ :: [Attribute action] -> [View action] -> View action
button_ = nodeHtml "button"
form_ :: [Attribute action] -> [View action] -> View action
form_ = nodeHtml "form"
p_ :: [Attribute action] -> [View action] -> View action
p_ = nodeHtml "p"
s_ :: [Attribute action] -> [View action] -> View action
s_ = nodeHtml "s"
ul_ :: [Attribute action] -> [View action] -> View action
ul_ = nodeHtml "ul"
span_ :: [Attribute action] -> [View action] -> View action
span_ = nodeHtml "span"
strong_ :: [Attribute action] -> [View action] -> View action
strong_ = nodeHtml "strong"
li_ :: [Attribute action] -> [View action] -> View action
li_ = nodeHtml "li"
liKeyed_ :: Key -> [Attribute action] -> [View action] -> View action
liKeyed_ = node HTML "li" . pure
h1_ :: [Attribute action] -> [View action] -> View action
h1_ = nodeHtml "h1"
h2_ :: [Attribute action] -> [View action] -> View action
h2_ = nodeHtml "h2"
h3_ :: [Attribute action] -> [View action] -> View action
h3_ = nodeHtml "h3"
h4_ :: [Attribute action] -> [View action] -> View action
h4_ = nodeHtml "h4"
h5_ :: [Attribute action] -> [View action] -> View action
h5_ = nodeHtml "h5"
h6_ :: [Attribute action] -> [View action] -> View action
h6_ = nodeHtml "h6"
hr_ :: [Attribute action] -> View action
hr_ = flip (nodeHtml "hr") []
pre_ :: [Attribute action] -> [View action] -> View action
pre_ = nodeHtml "pre"
input_ :: [Attribute action] -> View action
input_ = flip (nodeHtml "input") []
label_ :: [Attribute action] -> [View action] -> View action
label_ = nodeHtml "label"
a_ :: [Attribute action] -> [View action] -> View action
a_ = nodeHtml "a"
mark_ :: [Attribute action] -> [View action] -> View action
mark_ = nodeHtml "mark"
ruby_ :: [Attribute action] -> [View action] -> View action
ruby_ = nodeHtml "ruby"
rt_ :: [Attribute action] -> [View action] -> View action
rt_ = nodeHtml "rt"
rp_ :: [Attribute action] -> [View action] -> View action
rp_ = nodeHtml "rp"
bdi_ :: [Attribute action] -> [View action] -> View action
bdi_ = nodeHtml "bdi"
bdo_ :: [Attribute action] -> [View action] -> View action
bdo_ = nodeHtml "bdo"
wbr_ :: [Attribute action] -> View action
wbr_ = flip (nodeHtml "wbr") []
details_ :: [Attribute action] -> [View action] -> View action
details_ = nodeHtml "details"
summary_ :: [Attribute action] -> [View action] -> View action
summary_ = nodeHtml "summary"
menuitem_ :: [Attribute action] -> [View action] -> View action
menuitem_ = nodeHtml "menuitem"
menu_ :: [Attribute action] -> [View action] -> View action
menu_ = nodeHtml "menu"
fieldset_ :: [Attribute action] -> [View action] -> View action
fieldset_ = nodeHtml "fieldset"
legend_ :: [Attribute action] -> [View action] -> View action
legend_ = nodeHtml "legend"
datalist_ :: [Attribute action] -> [View action] -> View action
datalist_ = nodeHtml "datalist"
optgroup_ :: [Attribute action] -> [View action] -> View action
optgroup_ = nodeHtml "optgroup"
keygen_ :: [Attribute action] -> [View action] -> View action
keygen_ = nodeHtml "keygen"
output_ :: [Attribute action] -> [View action] -> View action
output_ = nodeHtml "output"
progress_ :: [Attribute action] -> [View action] -> View action
progress_ = nodeHtml "progress"
meter_ :: [Attribute action] -> [View action] -> View action
meter_ = nodeHtml "meter"
center_ :: [Attribute action] -> [View action] -> View action
center_ = nodeHtml "center"
audio_ :: [Attribute action] -> [View action] -> View action
audio_ = nodeHtml "audio"
video_ :: [Attribute action] -> [View action] -> View action
video_ = nodeHtml "video"
source_ :: [Attribute action] -> View action
source_ = flip (nodeHtml "source") []
track_ :: [Attribute action] -> View action
track_ = flip (nodeHtml "track") []
embed_ :: [Attribute action] -> View action
embed_ = flip (nodeHtml "embed") []
object_ :: [Attribute action] -> [View action] -> View action
object_ = nodeHtml "object"
param_ :: [Attribute action] -> View action
param_ = flip (nodeHtml "param") []
ins_ :: [Attribute action] -> [View action] -> View action
ins_ = nodeHtml "ins"
del_ :: [Attribute action] -> [View action] -> View action
del_ = nodeHtml "del"
small_ :: [Attribute action] -> [View action] -> View action
small_ = nodeHtml "small"
cite_ :: [Attribute action] -> [View action] -> View action
cite_ = nodeHtml "cite"
dfn_ :: [Attribute action] -> [View action] -> View action
dfn_ = nodeHtml "dfn"
abbr_ :: [Attribute action] -> [View action] -> View action
abbr_ = nodeHtml "abbr"
time_ :: [Attribute action] -> [View action] -> View action
time_ = nodeHtml "time"
var_ :: [Attribute action] -> [View action] -> View action
var_ = nodeHtml "var"
samp_ :: [Attribute action] -> [View action] -> View action
samp_ = nodeHtml "samp"
kbd_ :: [Attribute action] -> [View action] -> View action
kbd_ = nodeHtml "kbd"
caption_ :: [Attribute action] -> [View action] -> View action
caption_ = nodeHtml "caption"
colgroup_ :: [Attribute action] -> [View action] -> View action
colgroup_ = nodeHtml "colgroup"
col_ :: [Attribute action] -> View action
col_ = flip (nodeHtml "col") []
nav_ :: [Attribute action] -> [View action] -> View action
nav_ = nodeHtml "nav"
article_ :: [Attribute action] -> [View action] -> View action
article_ = nodeHtml "article"
aside_ :: [Attribute action] -> [View action] -> View action
aside_ = nodeHtml "aside"
address_ :: [Attribute action] -> [View action] -> View action
address_ = nodeHtml "address"
main_ :: [Attribute action] -> [View action] -> View action
main_ = nodeHtml "main"
body_ :: [Attribute action] -> [View action] -> View action
body_ = nodeHtml "body"
figure_ :: [Attribute action] -> [View action] -> View action
figure_ = nodeHtml "figure"
figcaption_ :: [Attribute action] -> [View action] -> View action
figcaption_ = nodeHtml "figcaption"
dl_ :: [Attribute action] -> [View action] -> View action
dl_ = nodeHtml "dl"
dt_ :: [Attribute action] -> [View action] -> View action
dt_ = nodeHtml "dt"
dd_ :: [Attribute action] -> [View action] -> View action
dd_ = nodeHtml "dd"
img_ :: [Attribute action] -> View action
img_ = flip (nodeHtml "img") []
iframe_ :: [Attribute action] -> [View action] -> View action
iframe_ = nodeHtml "iframe"
canvas_ :: [Attribute action] -> [View action] -> View action
canvas_ = nodeHtml "canvas"
math_ :: [Attribute action] -> [View action] -> View action
math_ = nodeHtml "math"
select_ :: [Attribute action] -> [View action] -> View action
select_ = nodeHtml "select"
option_ :: [Attribute action] -> [View action] -> View action
option_ = nodeHtml "option"
textarea_ :: [Attribute action] -> [View action] -> View action
textarea_ = nodeHtml "textarea"
sub_ :: [Attribute action] -> [View action] -> View action
sub_ = nodeHtml "sub"
sup_ :: [Attribute action] -> [View action] -> View action
sup_ = nodeHtml "sup"
br_ :: [Attribute action] -> View action
br_ = flip (nodeHtml "br") []
ol_ :: [Attribute action] -> [View action] -> View action
ol_ = nodeHtml "ol"
blockquote_ :: [Attribute action] -> [View action] -> View action
blockquote_ = nodeHtml "blockquote"
code_ :: [Attribute action] -> [View action] -> View action
code_ = nodeHtml "code"
em_ :: [Attribute action] -> [View action] -> View action
em_ = nodeHtml "em"
i_ :: [Attribute action] -> [View action] -> View action
i_ = nodeHtml "i"
b_ :: [Attribute action] -> [View action] -> View action
b_ = nodeHtml "b"
u_ :: [Attribute action] -> [View action] -> View action
u_ = nodeHtml "u"
q_ :: [Attribute action] -> [View action] -> View action
q_ = nodeHtml "q"
link_ :: [Attribute action] -> View action
link_ = flip (nodeHtml "link") []
style_ :: [Attribute action] -> MisoString -> View action
style_ attrs rawText = node HTML "style" Nothing attrs [textRaw rawText]
script_ :: [Attribute action] -> MisoString -> View action
script_ attrs rawText = node HTML "script" Nothing attrs [textRaw rawText]