JackRose-0.8: Spaced repetition web server

Copyright(c) Michael Mounteney, 2017
LicenseBSD 3 clause
Maintainerthe project name, all lower case, at landcroft dot com
Stabilityexperimental
Portabilityundefined
Safe HaskellNone
LanguageHaskell2010

PresentHTML

Description

Synopsis

Documentation

toHTMLdoc :: Document -> Handler Html Source #

Convert an XHTML document into XML and lift it into the Handler Monad, so it can be displayed.

documentHTMLNotice :: Text -> Document Source #

Convert a string (representing a notice or information for the user) into a Document.

documentXHTML :: Maybe Text -> Text -> [Node] -> [Node] -> Document Source #

Compose a Document with optional CSS, bottom buttons and a title.

gradeButtons :: [Node] Source #

Buttons 0 to 9 for scoring. The label must be synchronised with text in ScorePost.

okButton :: [Node] Source #

OK button. The label must be synchronised with text in ReviewPost.