summaryrefslogtreecommitdiff
path: root/src/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-12 15:03:43 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-02-12 15:03:43 +0100
commit6e2cc769289990a6fbe68d50598646008e3f8aa6 (patch)
treec90b8b29497d4e6ccddb1639a608a1470941cc5e /src/Hakyll
parent1100f65f76060a5bee2ae92c25923fff84dc856c (diff)
downloadhakyll-6e2cc769289990a6fbe68d50598646008e3f8aa6.tar.gz
$key$ instead of $key when not found
Diffstat (limited to 'src/Hakyll')
-rw-r--r--src/Hakyll/Web/Template.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hakyll/Web/Template.hs b/src/Hakyll/Web/Template.hs
index 6e6ad67..78ddbba 100644
--- a/src/Hakyll/Web/Template.hs
+++ b/src/Hakyll/Web/Template.hs
@@ -73,7 +73,7 @@ applyTemplate template page =
where
substitute (Chunk chunk) = chunk
substitute (Key key) =
- fromMaybe ('$' : key) $ M.lookup key $ toMap page
+ fromMaybe ("$" ++ key ++ "$") $ M.lookup key $ toMap page
substitute (Escaped) = "$"
-- | Apply a page as it's own template. This is often very useful to fill in