1-- | A concrete 'ResourceProvider' that gets it's resources from the filesystem
3module Hakyll.Core.ResourceProvider.FileResourceProvider
7import Control.Applicative ((<$>))
9import qualified Data.ByteString.Lazy as LB
11import Hakyll.Core.ResourceProvider
12import Hakyll.Core.Identifier
13import Hakyll.Core.Util.File
15-- | Create a filesystem-based 'ResourceProvider'
17fileResourceProvider :: IO ResourceProvider
18fileResourceProvider = do
19 list <- map parseIdentifier <$> getRecursiveContents "."
20 return $ ResourceProvider
22 , resourceString = readFile . toFilePath
23 , resourceLazyByteString = LB.readFile . toFilePath
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list