| Copyright | (c) 2015 Futurice |
|---|---|
| License | MIT (see the file LICENSE) |
| Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Waitra.Embedded
Description
Network.Waitra.Embedded is a missing part from wai-app-static.
- mkRecursiveEmbedded :: FilePath -> Q Exp
Documentation
mkRecursiveEmbedded :: FilePath -> Q Exp Source
Create a [(FilePath, ByteString)] list, recursively traversing given directory path.
staticApp $ embeddedSettings $(mkRecursiveEmbedded "static") -- is an in-memory equivalent of staticApp $ defaultFileServerSettings "static"