| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Drasil.Assets
Description
External file Assets.
Synopsis
- data Asset
- mkAsset :: Text -> ByteString -> Asset
- content :: Asset -> ByteString
- description :: Asset -> Text
- toFile :: Asset -> PathSegment -> FileLayout
- data Asset
- content :: Asset -> ByteString
- description :: Asset -> Text
- toFile :: Asset -> PathSegment -> FileLayout
- readAsset :: OsPath -> Text -> Code Q Asset
Documentation
An arbitrary file asset; a ByteString with a description.
toFile :: Asset -> PathSegment -> FileLayout Source #
Convert an Asset to a FileLayout node given a PathSegment (file name)
it is to be written to.
An arbitrary file asset; a ByteString with a description.
toFile :: Asset -> PathSegment -> FileLayout Source #
Convert an Asset to a FileLayout node given a PathSegment (file name)
it is to be written to.