waitra-0.0.4.0: A very simple Wai router

Copyright(c) 2015 Futurice
LicenseMIT (see the file LICENSE)
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.Waitra.Embedded

Description

Network.Waitra.Embedded is a missing part from wai-app-static.

Synopsis

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"