Skip to content

Commit

Permalink
Change names in Heist docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mightybyte committed Jan 29, 2012
1 parent dbc1770 commit ee261f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Text/Templating/Heist.hs
Expand Up @@ -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.
Expand Down

0 comments on commit ee261f8

Please sign in to comment.