Skip to content

Commit

Permalink
More documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mightybyte committed Sep 3, 2012
1 parent aece75e commit 103bf47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Snap/Snaplet/Heist.hs
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/Snap/Snaplet/HeistNoClass.hs
Expand Up @@ -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 ()
Expand Down

0 comments on commit 103bf47

Please sign in to comment.