1--------------------------------------------------------------------------------
2-- | This module provides an wrapper API around the file system which does some
4module Hakyll.Core.Provider
5 ( -- * Constructing resource providers
9 -- * Querying resource properties
13 , resourceModificationTime
15 -- * Access to raw resource content
19 -- * Access to metadata and body content
25--------------------------------------------------------------------------------
26import Hakyll.Core.Identifier
27import Hakyll.Core.Metadata
28import Hakyll.Core.Provider.Internal
29import qualified Hakyll.Core.Provider.MetadataCache as Internal
30import Hakyll.Core.Provider.Modified
33--------------------------------------------------------------------------------
34-- | Wrapper to ensure metadata cache is invalidated if necessary
35resourceMetadata :: Provider -> Identifier -> IO Metadata
36resourceMetadata rp r = do
37 _ <- resourceModified rp r
38 Internal.resourceMetadata rp r
41--------------------------------------------------------------------------------
42-- | Wrapper to ensure metadata cache is invalidated if necessary
43resourceBody :: Provider -> Identifier -> IO String
45 _ <- resourceModified rp r
46 Internal.resourceBody rp r
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