yesod/yesod-static/yesod-static.cabal
John Lenz f8a35ce0a0 static: Add an embedded static subsite
This commit adds just the subsite itself.  The subsite
works by running a list of generaters at compile time.
The entries produced by the generators are converted into
wai-app-static.WaiAppStatic.Storage.Embedded entries.  Also,
addStaticContent is supported via an IORef.  When a widget
produces static content (css, javascript), it is stuck into
the IORef inside the embedded static subsite.  The embedded
static subsite will then serve it from the IORef, properly
using a 304 response if the client already has the content.
2013-09-12 12:21:33 -05:00

97 lines
3.3 KiB
Plaintext

name: yesod-static
version: 1.2.0.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
maintainer: Michael Snoyman <michael@snoyman.com>, Greg Weber <greg@gregweber.info>
synopsis: Static file serving subsite for Yesod Web Framework.
category: Web, Yesod
stability: Stable
cabal-version: >= 1.8
build-type: Simple
homepage: http://www.yesodweb.com/
description: Static file serving subsite for Yesod Web Framework.
extra-source-files:
test/*.hs
test/fs/bar/baz
test/fs/tmp/ignored
test/fs/.ignored
test/fs/foo
library
build-depends: base >= 4 && < 5
, containers >= 0.2
, old-time >= 1.0
, yesod-core >= 1.2 && < 1.3
, base64-bytestring >= 0.1.0.1
, cereal >= 0.3
, bytestring >= 0.9.1.4
, template-haskell
, directory >= 1.0
, transformers >= 0.2.2
, wai-app-static >= 1.3.2 && < 1.4
, wai >= 1.3 && < 1.5
, text >= 0.9
, file-embed >= 0.0.4.1 && < 0.5
, http-types >= 0.7
, unix-compat >= 0.2
, conduit >= 0.5
, crypto-conduit >= 0.4
, cryptohash-cryptoapi >= 0.1.0
, system-filepath >= 0.4.6 && < 0.5
, system-fileio >= 0.3
, data-default
, shakespeare-css >= 1.0.3
, mime-types >= 0.1
exposed-modules: Yesod.Static
Yesod.EmbeddedStatic
Yesod.EmbeddedStatic.Generators
Yesod.EmbeddedStatic.Types
other-modules: Yesod.EmbeddedStatic.Internal
ghc-options: -Wall
test-suite tests
hs-source-dirs: ., test
main-is: tests.hs
type: exitcode-stdio-1.0
cpp-options: -DTEST_EXPORT
build-depends: base
, hspec >= 1.3
, yesod-test >= 1.2
, wai-test
, HUnit
-- copy from above
, containers
, old-time
, yesod-core
, base64-bytestring
, cereal
, bytestring
, template-haskell
, directory
, transformers
, wai-app-static
, wai
, text
, file-embed
, http-types
, unix-compat
, conduit
, crypto-conduit
, cryptohash-cryptoapi
, system-filepath
, system-fileio
, data-default
, shakespeare-css
, mime-types
ghc-options: -Wall
source-repository head
type: git
location: https://github.com/yesodweb/yesod