Safe Haskell | None |
---|---|
Language | Haskell98 |
Text.Strapped.Utils
- templateStoreFromList :: StrappedConfig -> [(String, String)] -> Either ParseError TemplateStore
- templateStoreFromDirectory :: StrappedConfig -> FilePath -> String -> IO (Either ParseError TemplateStore)
- putStore :: TemplateStore -> StrappedConfig -> StrappedConfig
- showToBuilder :: Show a => a -> Builder
- lit :: ToLiteral a => a -> Input m
- dyn :: (Renderable a, Typeable a) => a -> Input m
Documentation
templateStoreFromList :: StrappedConfig -> [(String, String)] -> Either ParseError TemplateStore Source
templateStoreFromDirectory :: StrappedConfig -> FilePath -> String -> IO (Either ParseError TemplateStore) Source
Given a file path and extension, load all templates in a directory, recursively.
showToBuilder :: Show a => a -> Builder Source
dyn :: (Renderable a, Typeable a) => a -> Input m Source