Copyright | (c) Mike Solomon 2020 |
---|---|
License | GPL-3 |
Maintainer | mike@meeshkan.com |
Stability | experimental |
Portability | POSIX, Windows |
Safe Haskell | Safe |
Language | Haskell2010 |
This module contains tags for web development. It has stuff like
img
, div
, br
, span
, etc. Because the module is huge, we
recommend doing selective import of the tags you need.
There are three conventions for tag naming:
- tags that accept children, like
div
andp
- tags that do not have children but could have attributes, like
img
- tags that have no attributes and no children, like
br
For tags that can have children, the following six tags are exported
(we'll use div
as an example, but the same works for span
, section
etc):
div
: A div that does not need to be hydrated with a state.div'
: A div that is hydrated with a state.div_
: A div with no attributes that does not need to be hydrated with a state.div'_
: A div with no attributes that is hydrated with a state.div__
: A div that only contains text that does not need to be hydrated with a state.div'__
: A div that only contains text that is hydrated with a state.
For tags that do not have children, the following six tags are exported
(we'll use img
as an example):
img
: A div that does not need to be hydrated with a state.img'
: A div that is hydrated with a state.img_
: A div with no attributes that does not need to be hydrated with a state.img'_
: A div with no attributes that is hydrated with a state.
For tags like br, there is only one export, namely br
.
Here are some gotchyas to bear in mind:
- The HTML
data
tag is renamed to_data
here. - Due to the volume of tags in this module, some of them follow an incorrect convention, ie accepting children when they shouldn't be able to. If you spot one, please make a PR.
Documentation
acronym'__ :: Sig__ s opq Source #
address'__ :: Sig__ s opq Source #
article'__ :: Sig__ s opq Source #
basefont'_ :: Sig_ s opq Source #
basefont__ :: AFSig__ s opq Source #
basefont'__ :: Sig__ s opq Source #
blockquote :: AFSig s opq Source #
blockquote' :: Sig s opq Source #
blockquote_ :: AFSig_ s opq Source #
blockquote'_ :: Sig_ s opq Source #
blockquote__ :: AFSig__ s opq Source #
blockquote'__ :: Sig__ s opq Source #
caption'__ :: Sig__ s opq Source #
colgroup'_ :: Sig_ s opq Source #
colgroup__ :: AFSig__ s opq Source #
colgroup'__ :: Sig__ s opq Source #
_datalist' :: Sig s opq Source #
_datalist_ :: AFSig_ s opq Source #
_datalist'_ :: Sig_ s opq Source #
_datalist__ :: AFSig__ s opq Source #
_datalist'__ :: Sig__ s opq Source #
details'__ :: Sig__ s opq Source #
fieldset'_ :: Sig_ s opq Source #
fieldset__ :: AFSig__ s opq Source #
fieldset'__ :: Sig__ s opq Source #
figcaption :: AFSig s opq Source #
figcaption' :: Sig s opq Source #
figcaption_ :: AFSig_ s opq Source #
figcaption'_ :: Sig_ s opq Source #
figcaption__ :: AFSig__ s opq Source #
figcaption'__ :: Sig__ s opq Source #
frameset'_ :: Sig_ s opq Source #
frameset__ :: AFSig__ s opq Source #
frameset'__ :: Sig__ s opq Source #
img :: (s -> Attributes s opq) -> s -> Node s opq Source #
img' :: (s -> Attributes s opq) -> Node s opq Source #
noframes'_ :: Sig_ s opq Source #
noframes__ :: AFSig__ s opq Source #
noframes'__ :: Sig__ s opq Source #
noscript'_ :: Sig_ s opq Source #
noscript__ :: AFSig__ s opq Source #
noscript'__ :: Sig__ s opq Source #
optgroup'_ :: Sig_ s opq Source #
optgroup__ :: AFSig__ s opq Source #
optgroup'__ :: Sig__ s opq Source #
picture'__ :: Sig__ s opq Source #
progress'_ :: Sig_ s opq Source #
progress__ :: AFSig__ s opq Source #
progress'__ :: Sig__ s opq Source #
section'__ :: Sig__ s opq Source #
summary'__ :: Sig__ s opq Source #
template'_ :: Sig_ s opq Source #
template__ :: AFSig__ s opq Source #
template'__ :: Sig__ s opq Source #
textarea'_ :: Sig_ s opq Source #
textarea__ :: AFSig__ s opq Source #
textarea'__ :: Sig__ s opq Source #