The latest version of wheb-strapped is 0.1.0.0-0.

wheb-strapped

Version 0.0.1.0 revision 0 uploaded by hansonkd.

Package meta

Synopsis
Strapped templates for Wheb
Description

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
Author
Kyle
Bug reports
n/a
Category
Web
Copyright
n/a
Homepage
https://github.com/hansonkd/Wheb-Framework
Maintainer
me@khanson.io
Package URL
n/a
Stability
n/a

Components