Copyright | (c) Adam Conner-Sax 2019 |
---|---|
License | BSD-3-Clause |
Maintainer | adam_conner_sax@yahoo.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Functions to support some simple reports using Lucid. Particularly to support adding latex and hvega charts.
Synopsis
- makeReportHtml :: Text -> Html a -> Html a
- placeVisualization :: Text -> VegaLite -> Html ()
- placeTextSection :: Html () -> Html ()
- latexToHtml :: Text -> Html ()
- latex_ :: Text -> Html ()
Setup, headers, scripts, etc.
makeReportHtml :: Text -> Html a -> Html a Source #
- - | wrap given html in appropriate headers for the hvega and latex functions to work
add specific report bits
placeVisualization :: Text -> VegaLite -> Html () Source #
add an hvega visualization with the given id
placeTextSection :: Html () -> Html () Source #
add the given Html as a new section
latexToHtml :: Text -> Html () Source #
Convert Latex to Lucid Html