Skip to content

Commit

Permalink
add poster attribute to html5
Browse files Browse the repository at this point in the history
fixes #75
  • Loading branch information
jaspervdj committed Mar 6, 2024
1 parent 90c2538 commit 6bac4a9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Text/Blaze/Html5/Attributes.hs
Expand Up @@ -141,6 +141,7 @@ module Text.Blaze.Html5.Attributes
, pattern
, ping
, placeholder
, poster
, preload
, property
, pubdate
Expand Down Expand Up @@ -2617,6 +2618,24 @@ placeholder :: AttributeValue -- ^ Attribute value.
placeholder = attribute "placeholder" " placeholder=\""
{-# INLINE placeholder #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
-- | Combinator for the @poster@ attribute.
--
-- Example:
--
-- > div ! poster "bar" $ "Hello."
--
-- Result:
--
-- > <div poster="bar">Hello.</div>
--
poster :: AttributeValue -- ^ Attribute value.
-> Attribute -- ^ Resulting attribute.
poster = attribute "poster" " poster=\""
{-# INLINE poster #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
Expand Down
19 changes: 19 additions & 0 deletions src/Text/Blaze/XHtml5/Attributes.hs
Expand Up @@ -141,6 +141,7 @@ module Text.Blaze.XHtml5.Attributes
, pattern
, ping
, placeholder
, poster
, preload
, property
, pubdate
Expand Down Expand Up @@ -2617,6 +2618,24 @@ placeholder :: AttributeValue -- ^ Attribute value.
placeholder = attribute "placeholder" " placeholder=\""
{-# INLINE placeholder #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
-- | Combinator for the @poster@ attribute.
--
-- Example:
--
-- > div ! poster "bar" $ "Hello."
--
-- Result:
--
-- > <div poster="bar">Hello.</div>
--
poster :: AttributeValue -- ^ Attribute value.
-> Attribute -- ^ Resulting attribute.
poster = attribute "poster" " poster=\""
{-# INLINE poster #-}

-- WARNING: The next block of code was automatically generated by
-- src/Util/GenerateHtmlCombinators.hs:250
--
Expand Down
1 change: 1 addition & 0 deletions src/Util/GenerateHtmlCombinators/Html5.hs
Expand Up @@ -265,6 +265,7 @@ attributes =
, "pattern"
, "ping"
, "placeholder"
, "poster"
, "preload"
, "property"
, "pubdate"
Expand Down

0 comments on commit 6bac4a9

Please sign in to comment.