@@ -4,9 +4,10 @@ Description:
44-}
55module Obelisk.Asset.TH
66 ( assetPath
7− , assetPathRaw
87 , staticAssetRaw
98 , staticAssetHashed
9+ , staticAssetFilePath
10+ , staticAssetFilePathRaw
1011 ) where
1112
1213import Obelisk.Asset.Gather
@@ -36,5 +37,9 @@ staticAssetHashed :: FilePath -> FilePath -> Q Exp
3637staticAssetHashed root fp = do
3738 LitE . StringL . (staticPrefix </>) <$> hashedAssetFilePath root fp
3839
39−assetPathRaw :: FilePath -> FilePath -> Q Exp
40−assetPathRaw root fp = returnQ $ LitE $ StringL $ root </> fp
40+staticAssetFilePathRaw :: FilePath -> FilePath -> Q Exp
41+staticAssetFilePathRaw root fp = returnQ $ LitE $ StringL $ root </> fp
42+
43+staticAssetFilePath :: FilePath -> FilePath -> Q Exp
44+staticAssetFilePath root fp = do
45+ LitE . StringL . (root </>) <$> hashedAssetFilePath root fp