From ee261f8a1fe8c453ac78d5ff5619c8a1d9f45896 Mon Sep 17 00:00:00 2001 From: Mighty Byte Date: Sun, 29 Jan 2012 10:25:18 -0500 Subject: [PATCH] Change names in Heist docs. --- src/Text/Templating/Heist.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Text/Templating/Heist.hs b/src/Text/Templating/Heist.hs index 0606abc..e49377a 100644 --- a/src/Text/Templating/Heist.hs +++ b/src/Text/Templating/Heist.hs @@ -54,12 +54,12 @@ > > main = do > ets <- loadTemplates "templates" $ - > bindSplices mySplices emptyHeistState + > bindSplices mySplices defaultHeistState > let ts = either error id ets > t <- runMyAppMonad $ renderTemplate ts "index" > print $ maybe "Page not found" (toByteString . fst) t - Here we build up our 'HeistState' by starting with emptyHeistState and + Here we build up our 'HeistState' by starting with defaultHeistState and applying bindSplice for all the splices we want to add. Then we pass this to loadTemplates our final 'HeistState' wrapped in an Either to handle errors. Then we use this 'HeistState' to render our templates.