1 module Settings.StaticFiles where
3 import Settings (appStaticDir, compileTimeAppSettings)
4 import Yesod.Static (staticFiles)
6 -- This generates easy references to files in the static directory at compile time,
7 -- giving you compile-time verification that referenced files exist.
8 -- Warning: any files added to your static directory during run-time can't be
9 -- accessed this way. You'll have to use their FilePath or URL to access them.
11 -- For example, to refer to @static/js/script.js@ via an identifier, you'd use:
15 -- If the identifier is not available, you may use:
17 -- StaticFile ["js", "script.js"] []
18 staticFiles (appStaticDir compileTimeAppSettings)