diff options
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Yesod.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Utility/Yesod.hs b/Utility/Yesod.hs new file mode 100644 index 000000000..05f684490 --- /dev/null +++ b/Utility/Yesod.hs @@ -0,0 +1,18 @@ +{- Yesod stuff + - + - Copyright 2012 Joey Hess <joey@kitenet.net> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +module Utility.Yesod where + +import System.FilePath + +{- Filename of a template, in the templates/ directory. -} +template :: FilePath -> FilePath +template f = "templates" </> f + +{- A hamlet template file. -} +hamletTemplate :: FilePath -> FilePath +hamletTemplate f = template f ++ ".hamlet" |