bureaucromancy-0.1.0.2: Parse webforms & render to interactive hypertext
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.HTML.Form.WebApp.Ginger.Hourglass

Description

Converts data between Ginger templates & HourGlass, whilst decomposing the datamodel further.

Synopsis

Documentation

timeData :: LocalTime DateTime -> GVal a Source #

Converts HourGlass data to Ginger's datamodel.

modifyTime :: Text -> LocalTime DateTime -> Maybe (LocalTime DateTime) Source #

Interpret an operation upon a given time.

modifyTime' :: Text -> String -> Maybe String Source #

Helper for modifying time component of HourGlass data.

timeParseOrNow :: String -> IO (LocalTime DateTime) Source #

Parse a string to HourGlass data, falling back to the current time.

gSeqTo :: [(a, GVal m)] -> GVal m Source #

A sequence to be called from Ginger templates.

gPad2 :: [(a, GVal m)] -> GVal m Source #

A padding function to be called from Ginger templates, prepending 0 when needed to get 2 digits.