diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Hakyll/Web/Template/Tests.hs | 1 | ||||
-rw-r--r-- | tests/data/template.html | 2 | ||||
-rw-r--r-- | tests/data/template.html.out | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs index 1d80a06..8763147 100644 --- a/tests/Hakyll/Web/Template/Tests.hs +++ b/tests/Hakyll/Web/Template/Tests.hs @@ -58,6 +58,7 @@ testContext = mconcat n1 <- makeItem "Jan" n2 <- makeItem "Piet" return [n1, n2] + , functionField "rev" $ \args _ -> return $ unwords $ map reverse args ] where diff --git a/tests/data/template.html b/tests/data/template.html index 22e5ddd..26f9e8a 100644 --- a/tests/data/template.html +++ b/tests/data/template.html @@ -1,6 +1,8 @@ <div> I'm so rich I have $$3. + $rev foo$ + $if(body)$ I have body $else$ diff --git a/tests/data/template.html.out b/tests/data/template.html.out index 8047b0d..0b17d31 100644 --- a/tests/data/template.html.out +++ b/tests/data/template.html.out @@ -1,6 +1,8 @@ <div> I'm so rich I have $3. + oof + I have body |