summaryrefslogtreecommitdiff
path: root/Settings/StaticFiles.hs
blob: bd29ca31daa97ac6234138816a6742fc30eab489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Settings.StaticFiles where

import Settings     (appStaticDir, compileTimeAppSettings)
import Yesod.EmbeddedStatic (mkEmbeddedStatic, embedDir)
import Prelude (Bool(..), ($))

#ifdef DEVELOPMENT
#define DEV_BOOL True
#else
#define DEV_BOOL False
#endif

mkEmbeddedStatic DEV_BOOL "eStatic" [embedDir $ appStaticDir compileTimeAppSettings]