From d84b462a711ce95593ff05a7581e722562c3835a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 14 Mar 2017 01:06:28 +0100 Subject: Implement old bar.hs --- Settings/StaticFiles.hs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Settings/StaticFiles.hs (limited to 'Settings/StaticFiles.hs') 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 @@ +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] -- cgit v1.2.3