This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap-website".
The branch, master has been updated
via 4eefea7c1651392011ff37719816eb4f8353ed90 (commit)
from 430880410767d97f2f7d3e2a2dab6b0221e60062 (commit)
Summary of changes:
templates/docs/tutorials/heist.md | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4eefea7c1651392011ff37719816eb4f8353ed90
Author: Mighty Byte <[email protected]>
Date: Sun Dec 12 10:59:30 2010 -0500
Updated Heist documentation to reflect API changes in heist 0.4.
diff --git a/templates/docs/tutorials/heist.md
b/templates/docs/tutorials/heist.md
index 74f75c1..0c704b4 100644
--- a/templates/docs/tutorials/heist.md
+++ b/templates/docs/tutorials/heist.md
@@ -394,15 +394,16 @@ template is rendered.
All of Heist's splices, templates, and hooks are stored in
`TemplateState`. Heist provides `TemplateState` modifier functions
for configuration. `emptyTemplateState` gives you reasonable defaults
-that you build on to suit your needs. Let's look at an example to
-illustrate.
+that you build on to suit your needs. It takes one argument: the path
+to the root of the directory tree where templates are stored. Let's
+look at an example to illustrate.
~~~~~~~~~~~~~~~ {.haskell}
myHeistState =
addOnLoadHook onLoad $
addPreRunHook preRun $
addPostRunHook postRun $
- bindSplice "fact" factSplice emptyTemplateState
+ bindSplice "fact" factSplice (emptyTemplateState "templates")
main = do
ets <- loadTemplates "templates" myHeistState
-----------------------------------------------------------------------
hooks/post-receive
--
snap-website
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap