diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-02-12 16:54:31 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-02-12 16:54:31 +0100 |
commit | 1e0c875d6efd67bda010573fc8bb935eef2ea225 (patch) | |
tree | c6a2e85c8b913459d21492e61b471ac508ee6ba6 /src/Hakyll | |
parent | f910233e0ff0e276a10a1a8f37cf4c02499ef9ae (diff) | |
download | hakyll-1e0c875d6efd67bda010573fc8bb935eef2ea225.tar.gz |
More Identifier documentation
Diffstat (limited to 'src/Hakyll')
-rw-r--r-- | src/Hakyll/Core/Identifier.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Hakyll/Core/Identifier.hs b/src/Hakyll/Core/Identifier.hs index ea03e8c..16403e6 100644 --- a/src/Hakyll/Core/Identifier.hs +++ b/src/Hakyll/Core/Identifier.hs @@ -10,6 +10,16 @@ -- -- * @error/404@ -- +-- The most important difference between an 'Identifier' and a file path is that +-- the identifier for an item is not necesserily the file path. +-- +-- For example, we could have an @index@ identifier, generated by Hakyll. The +-- actual file path would be @index.html@, but we identify it using @index@. +-- +-- @posts/foo.markdown@ could be an identifier of an item that is rendered to +-- @posts/foo.html@. In this case, the identifier is the name of the source +-- file of the page. +-- {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Hakyll.Core.Identifier ( Identifier (..) |