Skip to content
Browse files

More documentation

  • Loading branch information...
1 parent aece75e commit 103bf47a8e8b8f9c31405e623b4eb5fbf41e10b5 @mightybyte mightybyte committed Sep 3, 2012
Showing with 8 additions and 4 deletions.
  1. +4 −4 src/Snap/Snaplet/Heist.hs
  2. +4 −0 src/Snap/Snaplet/HeistNoClass.hs
View
8 src/Snap/Snaplet/Heist.hs
@@ -177,8 +177,8 @@ renderAs ct t = withTop' heistLens (Unclassed.renderAs ct t)
------------------------------------------------------------------------------
--- | Renders a template as text\/html. If the given template is not found,
--- this returns 'empty'.
+-- | Renders a compiled template as text\/html. If the given template is not
+-- found, this returns 'empty'.
cRender :: HasHeist b
=> ByteString
-- ^ Template name
@@ -187,8 +187,8 @@ cRender t = withTop' heistLens (Unclassed.cRender t)
------------------------------------------------------------------------------
--- | Renders a template as the given content type. If the given template
--- is not found, this returns 'empty'.
+-- | Renders a compiled template as the given content type. If the given
+-- template is not found, this returns 'empty'.
cRenderAs :: HasHeist b
=> ByteString
-- ^ Content type to render with
View
4 src/Snap/Snaplet/HeistNoClass.hs
@@ -373,6 +373,10 @@ withHeistState heist f = withHeistState' (subSnaplet heist) f
------------------------------------------------------------------------------
+-- | Adds more HeistConfig data using mappend with whatever is currently
+-- there. This is the preferred method for adding all four kinds of splices
+-- as well as new
+-- templates.
addConfig :: Snaplet (Heist b)
-> HeistConfig (Handler b b)
-> Initializer b v ()

0 comments on commit 103bf47

Please sign in to comment.
Something went wrong with that request. Please try again.