BSD-3-Clause licensed by Dennis Gosnell
This version can be pinned in stack with:servant-static-th-0.2.4.0@sha256:16e329fc3a22bb13a31c85ab4aea8791f1404a614504eeb5231e1449b63b3038,3883
Module documentation for 0.2.4.0
Depends on 16 packages
(full list with versions):
base,
blaze-html,
bytestring,
containers,
directory,
filepath,
http-media,
semigroups,
servant,
servant-blaze,
servant-server,
servant-static-th,
template-haskell,
text,
wai,
warp Servant.Static.TH
servant-static-th
allows you to embed a directory of static files in your
application and serve them from your Servant server
For documentation and usage examples, see the
documentation on Hackage.
Changelog
v0.2.4.0
v0.2.3.0
v0.2.2.1
- Update haddocks with a note to use
extra-source-files
in your .cabal
file. Thanks fkellner! #8
v0.2.2.0
- This adds MIME types for json, xml, gex. Thanks delanoe! #5
v0.2.1.0
- This was mistakenly released to Hackage without exposing the constructors added in #5). It has been blacklisted on Hackage.
v0.2.0.1
- In v0.2.0.0, the new MIME types were not being exported from
Servant.Static.TH
. This fixes that.
v0.2.0.0
- Add
support
for ico, eot, ttf, woff, and woff2 file. Thanks Alex!
v0.1.0.6
- Make it more efficient to embed bytestring filetypes.
- Make everything other than HTML files be embedded as bytestrings. Don’t
assume UTF8 encoding.