backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.HTML

Synopsis

Rendering HTML

renderSectionHtmlCss :: FormattedSection -> Map Label Footnote -> (Html (), Css) Source #

Render single Node Section with given Footnote Map to Html () and Css

renderHtmlCss :: Flagged' DocumentContainer -> (Html (), Css) Source #

Render Flagged' DocumentContainer to Html () and Css

renderHtmlCssWith :: ReaderState -> GlobalState -> Flagged' DocumentContainer -> (Html (), Css) Source #

Render a Flagged' DocumentContainer to HTML and CSS with a given initial ReaderState and GlobalState

renderHtmlCssExport Source #

Arguments

:: FilePath

Path from exported Sections to main HTML

-> ReaderState

Used for document container

-> GlobalState 
-> ReaderState

Used for exported sections

-> Flagged' DocumentContainer 
-> Maybe (Html (), Css, [(Text, Text, Html ())], Text) 

Render a Flagged' DocumentContainer with given states to main HTML, main CSS, and list of exported sections. Fails, if any parse errors occur.

renderHtmlCssBS :: Flagged' DocumentContainer -> ByteString Source #

Renders a Flagged' DocumentContainer to HTML ByteString with inlined CSS

Rendering ToC Headings

renderTocList :: Flagged' DocumentContainer -> [RenderedTocEntry] Source #

Renders a global ToC (including appendices) as a list of either (Maybe idHtml, Result titleHtml) or a phantom result type for SimpleSections which do not have a Heading. The Result type signals the Frontend if an error occured while parsing the segment.