The wheb-strapped package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

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

Versions0.0.1.0, 0.0.1.0, 0.0.2.0, 0.1.0.0
Change logNone available
Dependenciesbase (==4.7.*), mtl (==2.2.*), StrappedTemplates (==0.1.*), Wheb (==0.2.*) [details]
LicenseBSD3
AuthorKyle
Maintainerme@khanson.io
CategoryWeb
Home pagehttps://github.com/hansonkd/Wheb-Framework
UploadedSun Aug 3 16:57:41 UTC 2014 by hansonkd

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees