Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data StrappedContainer m = StrappedContainer {}
- class StrappedApp g m where
- getStrappedContainer :: g -> StrappedContainer m
- renderTemplate :: (MonadIO m, StrappedApp g (WhebT g s m)) => String -> InputBucket (WhebT g s m) -> WhebHandlerT g s m
- initStrapped :: MonadIO m => FilePath -> String -> InitM g s m (StrappedContainer (WhebT g s m))
- module Text.Strapped
Documentation
data StrappedContainer m Source
class StrappedApp g m where Source
getStrappedContainer :: g -> StrappedContainer m Source
renderTemplate :: (MonadIO m, StrappedApp g (WhebT g s m)) => String -> InputBucket (WhebT g s m) -> WhebHandlerT g s m Source
Render a template or throw an error
initStrapped :: MonadIO m => FilePath -> String -> InitM g s m (StrappedContainer (WhebT g s m)) Source
Load Strapped from a directory matching the extention
module Text.Strapped