diff options
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] | ||