Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- renderText :: View () () -> Text
- renderLazyText :: View () () -> Text
- renderLazyByteString :: View () () -> ByteString
- renderText' :: c -> View c () -> Text
- renderTag :: (Text -> Text) -> Element -> [Text]
- renderCSS :: CSS -> [Text]
- indent :: Text -> Text
- selectorText :: Selector -> Text
- classNameElementText :: Maybe Media -> Maybe Text -> Maybe Pseudo -> ClassName -> Text
- 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 #
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
classNameElementText :: Maybe Media -> Maybe Text -> Maybe Pseudo -> ClassName -> Text Source #
The class name as it appears in the element
pseudoText :: Pseudo -> Text Source #
flatAttributes :: Element -> FlatAttributes Source #
The Attributes
for an element, inclusive of class.