Safe Haskell | None |
---|---|
Language | Haskell2010 |
Clay.Render
Synopsis
- data Config = Config {}
- pretty :: Config
- compact :: Config
- render :: Css -> Text
- htmlInline :: Config
- putCss :: Css -> IO ()
- renderWith :: Config -> [App] -> Css -> Text
- renderSelector :: Selector -> Text
- renderRefinement :: Refinement -> [Text]
- withBanner :: Text -> Text
Documentation
render :: Css -> Text Source #
Render a stylesheet with the default configuration. The pretty printer is used by default.
htmlInline :: Config Source #
Configuration to print to a compacted unreadable CSS output for embedding inline with HTML.
putCss :: Css -> IO () Source #
Render to CSS using the default configuration (pretty
) and directly
print to the standard output.
renderWith :: Config -> [App] -> Css -> Text Source #
Render a stylesheet with a custom configuration and an optional outer scope.
renderRefinement :: Refinement -> [Text] Source #
Render a CSS Refinement
.
withBanner :: Text -> Text Source #