I've just done a very simple Scalatra app using Jade, it seems to work as per the docs.
Edit: I had been working with an app generated in an earlier version of Scalatra.
In Scalatra 2.2.0, we added precompiled Scalate templates in the g8 skeleton, to give extra speed in production by default. There's an error in project/build.scala
in there which causes flash context to get lost.
Add this to your project/build.scala
: https://gist.github.com/anonymous/ff40cdde1a1105970f50#file-build-scala-L37-L39
We'll fix the g8 template momentarily. Sorry for the trouble.