The wheb-strapped package

[Tags:bsd3, library]

Implements basic functionality for:

In action:

Use with language extensions OverloadedStrings, FlexibleInstances, MultiParamTypeClasses

 import           Control.Monad.Except

 import           Web.Wheb
 import           Web.Wheb.Plugins.Strapped
 import           Text.Strapped

 type MyApp = WhebT MyGlobalCtx () IO

 data MyGlobalCtx = MyGlobalCtx (StrappedContainer MyApp)

 instance StrappedApp MyGlobalCtx MyApp where
     getStrappedContainer (MyGlobalCtx g) = g

 main :: IO ()
 main = do
  opts <- generateOptions $ do
    sc <- initStrapped "examples/resources" ".html"
    addGET "." rootPat $ renderTemplate "index.html" (emptyBucket)
    return (MyGlobalCtx sc, ())
  runWhebServer opts

Properties

Versions 0.0.1.0, 0.0.2.0, 0.1.0.0
Dependencies base (==4.7.*), mtl (==2.2.*), StrappedTemplates (==0.2.*), text (==1.1.*), Wheb (==0.3.*) [details]
License BSD3
Author Kyle
Maintainer me@khanson.io
Category Web
Home page https://github.com/hansonkd/Wheb-Framework
Uploaded Sun Sep 14 04:40:41 UTC 2014 by hansonkd
Distributions NixOS:0.1.0.0
Downloads 588 total (12 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees