-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug that caused a runtime error when trying to view non-exisita…
…nt records
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Settings.StaticFiles where | ||
|
||
import Settings (appStaticDir, compileTimeAppSettings) | ||
import Yesod.Static (staticFiles) | ||
|
||
-- This generates easy references to files in the static directory at compile time, | ||
-- giving you compile-time verification that referenced files exist. | ||
-- Warning: any files added to your static directory during run-time can't be | ||
-- accessed this way. You'll have to use their FilePath or URL to access them. | ||
-- | ||
-- For example, to refer to @static/js/script.js@ via an identifier, you'd use: | ||
-- | ||
-- js_script_js | ||
-- | ||
-- If the identifier is not available, you may use: | ||
-- | ||
-- StaticFile ["js", "script.js"] [] | ||
staticFiles (appStaticDir compileTimeAppSettings) |