| |||||||||
| |||||||||
| Description | |||||||||
| This module defines a TemplateDirectory data structure for convenient interaction with templates within web apps. | |||||||||
| Synopsis | |||||||||
| |||||||||
| Documentation | |||||||||
| data TemplateDirectory m | |||||||||
| |||||||||
| newTemplateDirectory :: (MonadIO m, MonadIO n) => FilePath -> TemplateState m -> n (Either String (TemplateDirectory m)) | |||||||||
| Creates and returns a new TemplateDirectory wrapped in an Either for error handling. | |||||||||
| newTemplateDirectory' :: (MonadIO m, MonadIO n) => FilePath -> TemplateState m -> n (TemplateDirectory m) | |||||||||
| Creates and returns a new TemplateDirectory, using the monad's fail function on error. | |||||||||
| getDirectoryTS :: (Monad m, MonadIO n) => TemplateDirectory m -> n (TemplateState m) | |||||||||
| Gets the TemplateState from a TemplateDirectory. | |||||||||
| reloadTemplateDirectory :: (MonadIO m, MonadIO n) => TemplateDirectory m -> n (Either String ()) | |||||||||
| Clears cached content and reloads templates from disk. | |||||||||
| Produced by Haddock version 2.7.2 |