]> Git — Sourcephile - comptalang.git/blob - web/Settings/StaticFiles.hs
Ajout : Format.Ledger.Read.journal
[comptalang.git] / web / Settings / StaticFiles.hs
1 module Settings.StaticFiles where
2
3 import Settings (appStaticDir, compileTimeAppSettings)
4 import Yesod.Static (staticFiles)
5
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.
10 --
11 -- For example, to refer to @static/js/script.js@ via an identifier, you'd use:
12 --
13 -- js_script_js
14 --
15 -- If the identifier is not available, you may use:
16 --
17 -- StaticFile ["js", "script.js"] []
18 staticFiles (appStaticDir compileTimeAppSettings)