Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- renderText :: View () () -> Text
- renderLazyText :: View () () -> Text
- renderLazyByteString :: View () () -> ByteString
- data Line = Line {}
- data LineEnd
- renderLines :: [Line] -> Text
- renderText' :: c -> View c () -> Text
- renderContent :: Int -> Content -> [Line]
- renderTag :: Int -> Element -> [Line]
- addIndent :: Int -> Line -> Line
- renderCSS :: CSS -> [Line]
- indent :: Text -> Text
- selectorText :: Selector -> Text
- attributeClassName :: Selector -> ClassName
- pseudoText :: Pseudo -> Text
- flatAttributes :: Element -> FlatAttributes
Documentation
renderText :: View () () -> Text Source #
Renders a View
as HTML with embedded CSS class definitions
>>>
renderText $ el bold "Hello"
<style type='text/css'>.bold { font-weight:bold }</style> <div class='bold'>Hello</div>
renderLazyText :: View () () -> Text Source #
renderLazyByteString :: View () () -> ByteString Source #
renderLines :: [Line] -> Text Source #
Render lines to text
renderText' :: c -> View c () -> Text Source #
Render with the specified view context
renderText' () $ el bold "Hello"
selectorText :: Selector -> Text Source #
The css selector for this style
attributeClassName :: Selector -> ClassName Source #
Unique name for the class, as seen in the element's class attribute
pseudoText :: Pseudo -> Text Source #
flatAttributes :: Element -> FlatAttributes Source #
The Attributes
for an element, inclusive of class.