Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utility functions based on Template
to offer $var
variable
expansion in string throughout a B9 artifact.
Synopsis
- subst :: Environment -> String -> String
- substE :: Environment -> String -> Either String String
- substEB :: Environment -> ByteString -> Either String ByteString
- substFile :: MonadIO m => Environment -> FilePath -> FilePath -> m ()
- substPath :: Environment -> SystemPath -> SystemPath
- readTemplateFile :: (MonadIO m, MonadEnvironment m) => SourceFile -> m ByteString
- data SourceFile = Source SourceFileConversion FilePath
- data SourceFileConversion
Documentation
substEB :: Environment -> ByteString -> Either String ByteString Source #
substPath :: Environment -> SystemPath -> SystemPath Source #
readTemplateFile :: (MonadIO m, MonadEnvironment m) => SourceFile -> m ByteString Source #
data SourceFile Source #
A wrapper around a file path and a flag indicating if template variable expansion should be performed when reading the file contents.
Instances
data SourceFileConversion Source #