Safe Haskell | None |
---|---|
Language | GHC2021 |
Web.Atomic.Render
Synopsis
- renderLazyText :: Html () -> Text
- renderLazyByteString :: Html () -> ByteString
- renderText :: Html () -> Text
- htmlLines :: Int -> Html a -> [Line]
- nodesLines :: Int -> [Node] -> [Line]
- nodeLines :: Int -> Node -> [Line]
- elementLines :: Int -> Element -> [Line]
- newtype FlatAttributes = FlatAttributes (Map Name AttValue)
- elementAttributes :: Element -> FlatAttributes
- renderAttributes :: FlatAttributes -> Text
- cssRulesLines :: Map Selector Rule -> [Line]
- cssRuleLine :: Rule -> Maybe Line
- wrapMedia :: MediaQuery -> Text -> Text
- styleLines :: [Line] -> [Line]
- data Line = Line {}
- data LineEnd
- addIndent :: Int -> Line -> Line
- renderLines :: [Line] -> Text
Documentation
renderLazyText :: Html () -> Text Source #
renderLazyByteString :: Html () -> ByteString Source #
renderText :: Html () -> Text Source #
newtype FlatAttributes Source #
Element's attributes do not include class, which is separated. FlatAttributes generate the class attribute and include it
Constructors
FlatAttributes (Map Name AttValue) |
Instances
Eq FlatAttributes Source # | |
Defined in Web.Atomic.Render Methods (==) :: FlatAttributes -> FlatAttributes -> Bool # (/=) :: FlatAttributes -> FlatAttributes -> Bool # |
elementAttributes :: Element -> FlatAttributes Source #
The FlatAttributes
for an element, inclusive of class.
styleLines :: [Line] -> [Line] Source #
renderLines :: [Line] -> Text Source #
Render lines to text