$key$ instead of $key when not found
commit6e2cc769289990a6fbe68d50598646008e3f8aa6
authorJasper Van der Jeugt <jaspervdj@gmail.com>
dateSat 12 Feb 2011, 15:03 (16 years ago)
parent1100f65
src/Hakyll/Web/Template.hs+1−1
@@ -73,7 +73,7 @@ applyTemplate template page =
7373 where
7474 substitute (Chunk chunk) = chunk
7575 substitute (Key key) =
76− fromMaybe ('$' : key) $ M.lookup key $ toMap page
76+ fromMaybe ("$" ++ key ++ "$") $ M.lookup key $ toMap page
7777 substitute (Escaped) = "$"
7878
7979-- | Apply a page as it's own template. This is often very useful to fill in