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

Text.HTML.Form.WebApp.Ginger

Description

Shuttle parsed form data to Ginger's dynamically-typed datamodel.

Synopsis

Documentation

template :: Monad m => String -> Form -> Int -> Input -> Query -> m (Maybe (Either Query Text)) Source #

Run the given template with the given Bureaucromancy data.

template' :: Monad m => String -> Form -> Int -> Input -> Query -> (Text -> GVal (Run SourcePos (Writer Html) Html)) -> m (Maybe (Either Query Text)) Source #

Run the given template with the given Bureaucromancy & Ginger data.

resolveSource :: FilePath -> Maybe (Maybe [Char]) Source #

Lookup the given template from a compiled-in directory.

list' :: [GVal m] -> GVal m Source #

Type-constrained conversion of a list to Ginger's datamodel, serves to avoid type-inference issues.