Created
April 6, 2011 13:48
-
-
Save beastaugh/905668 to your computer and use it in GitHub Desktop.
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
routeArticle :: Routes | |
routeArticle = customRoute (flip replaceExtension ".html" . dropDate) | |
dropDate :: Identifier -> FilePath | |
dropDate ident = let file = toFilePath ident | |
in replaceFileName file (drop 11 $ takeFileName file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment