diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-14 01:06:28 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-14 01:06:28 +0100 |
| commit | d84b462a711ce95593ff05a7581e722562c3835a (patch) | |
| tree | 41e5af455fea925b2680b29718b24ba2876e803a /Settings | |
| download | bar-d84b462a711ce95593ff05a7581e722562c3835a.tar bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.gz bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.bz2 bar-d84b462a711ce95593ff05a7581e722562c3835a.tar.xz bar-d84b462a711ce95593ff05a7581e722562c3835a.zip | |
Implement old bar.hs
Diffstat (limited to 'Settings')
| -rw-r--r-- | Settings/StaticFiles.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Settings/StaticFiles.hs b/Settings/StaticFiles.hs new file mode 100644 index 0000000..bd29ca3 --- /dev/null +++ b/Settings/StaticFiles.hs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | module Settings.StaticFiles where | ||
| 2 | |||
| 3 | import Settings (appStaticDir, compileTimeAppSettings) | ||
| 4 | import Yesod.EmbeddedStatic (mkEmbeddedStatic, embedDir) | ||
| 5 | import Prelude (Bool(..), ($)) | ||
| 6 | |||
| 7 | #ifdef DEVELOPMENT | ||
| 8 | #define DEV_BOOL True | ||
| 9 | #else | ||
| 10 | #define DEV_BOOL False | ||
| 11 | #endif | ||
| 12 | |||
| 13 | mkEmbeddedStatic DEV_BOOL "eStatic" [embedDir $ appStaticDir compileTimeAppSettings] | ||
