summaryrefslogtreecommitdiff
path: root/Settings
diff options
context:
space:
mode:
Diffstat (limited to 'Settings')
-rw-r--r--Settings/StaticFiles.hs13
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 @@
1module Settings.StaticFiles where
2
3import Settings (appStaticDir, compileTimeAppSettings)
4import Yesod.EmbeddedStatic (mkEmbeddedStatic, embedDir)
5import Prelude (Bool(..), ($))
6
7#ifdef DEVELOPMENT
8#define DEV_BOOL True
9#else
10#define DEV_BOOL False
11#endif
12
13mkEmbeddedStatic DEV_BOOL "eStatic" [embedDir $ appStaticDir compileTimeAppSettings]