Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change names in Heist docs.

  • Loading branch information...
commit ee261f8a1fe8c453ac78d5ff5619c8a1d9f45896 1 parent dbc1770
@mightybyte mightybyte authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Text/Templating/Heist.hs
4 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.
Please sign in to comment.
Something went wrong with that request. Please try again.