diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-17 12:37:55 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2010-01-17 12:37:55 +0100 |
commit | aa44d6c0da442887155a47c77f03209224517af0 (patch) | |
tree | b9c1d8fe6bed4eb1922d737f8817d851d8a34f5d /src/Text/Hakyll/Render | |
parent | 003734442486876153911d339f07d4379e8dca20 (diff) | |
download | hakyll-aa44d6c0da442887155a47c77f03209224517af0.tar.gz |
Documentation++.
Diffstat (limited to 'src/Text/Hakyll/Render')
-rw-r--r-- | src/Text/Hakyll/Render/Internal.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Text/Hakyll/Render/Internal.hs b/src/Text/Hakyll/Render/Internal.hs index 7e5fd37..33ffcdf 100644 --- a/src/Text/Hakyll/Render/Internal.hs +++ b/src/Text/Hakyll/Render/Internal.hs @@ -21,9 +21,9 @@ import Text.Hakyll.Page import Text.Hakyll.File import Text.Hakyll.Hakyll --- | Substitutes `$identifiers` in the given string by values from the given +-- | Substitutes @$identifiers@ in the given string by values from the given -- "Context". When a key is not found, it is left as it is. You can here --- specify the characters used to replace escaped dollars `$$`. +-- specify the characters used to replace escaped dollars (@$$@). substitute :: String -> String -> Context -> String substitute _ [] _ = [] substitute escaper string context @@ -60,14 +60,14 @@ pureRenderWith manipulation template context = -- | A pure renderAndConcat function. pureRenderAndConcatWith :: ContextManipulation - -> String -- ^ Template to use. + -> [String] -- ^ Templates to use. -> [Context] -- ^ Different renderables. -> String -pureRenderAndConcatWith manipulation template contexts = +pureRenderAndConcatWith manipulation templates contexts = foldl' renderAndConcat [] contexts where renderAndConcat chunk context = - let rendered = pureRenderWith manipulation template context + let rendered = pureRenderChainWith manipulation templates context in chunk ++ fromMaybe "" (M.lookup "body" rendered) -- | A pure renderChain function. |