Browse files

Add missing heist snaplet changes to the 0.8 release notes.

  • Loading branch information...
1 parent 6ac3060 commit 991743012d492a98fbdede2280c04d8ed869ab3f @mightybyte mightybyte committed Mar 16, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 blogdata/content/2012/03/16/
@@ -233,6 +233,27 @@ many prefixes.
Exceptions thrown by Snaplet initializers are now caught properly, and unload
actions that were registered before the exception was thrown are now executed.
+### Heist snaplet filepath change
+The Heist snaplet used to look for templates in the user-specified directory
+relative to the project root. This yielded incorrect behavior when using the
+snaplet somewhere other than at the top level. Now the Heist snaplet looks in
+it's correct root in the filesystem: snaplets/heist. If your application has
+this code
+~~~~~~~~~~ {.haskell}
+hs <- nestSnaplet "" heist $ heistInit "templates"
+ 0.7 your templates would have been in templates. In 0.8 they should
+reside in snaplets/heist/templates.
+### New semantics for addTemplatesAt
+The URLs generated by addTemplatesAt are now (correctly) relative to the
+snaplet's root URL. If you use this function or the addTemplates function to
+manually add templates that were not loaded by heistInit, you will have to
+change your code.
### Heist: fix small bug with $-expansion in attributes

0 comments on commit 9917430

Please sign in to comment.