Safe Haskell | None |
---|---|
Language | Haskell98 |
- combineBuckets :: InputBucket m -> InputBucket m -> InputBucket m
- varBucket :: String -> Input m -> InputBucket m
- bucketLookup :: String -> InputBucket m -> Maybe (Input m)
- bucketFromList :: [(String, Input m)] -> InputBucket m
- emptyBucket :: InputBucket m
- render :: MonadIO m => RenderConfig -> InputBucket m -> String -> m (Either StrapError Output)
- defaultConfig :: RenderConfig
Documentation
combineBuckets :: InputBucket m -> InputBucket m -> InputBucket m Source
If the first bucket fails, try the second.
varBucket :: String -> Input m -> InputBucket m Source
Basic bucket. Matches on string and return input. Returns Nothing for everything else.
bucketLookup :: String -> InputBucket m -> Maybe (Input m) Source
bucketFromList :: [(String, Input m)] -> InputBucket m Source
emptyBucket :: InputBucket m Source
render :: MonadIO m => RenderConfig -> InputBucket m -> String -> m (Either StrapError Output) Source
Using a TemplateStore
and an InputBucket
render the template name.
defaultConfig :: RenderConfig Source
Default render configuration. No text escaping.