| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Drasil.Assets.Core
Description
External file Assets.
Synopsis
- data Asset
- mkAsset :: Text -> ByteString -> Asset
- content :: Asset -> ByteString
- description :: Asset -> Text
- toFile :: Asset -> PathSegment -> FileLayout
Assets
An arbitrary file asset; a ByteString with a description.
Constructors
Accessors
File Dumping
toFile :: Asset -> PathSegment -> FileLayout Source #
Convert an Asset to a FileLayout node given a PathSegment (file name)
it is to be written to.