I am trying to create a simple scala project for gae platform, After
reading several threads i reached the step where i am able to load
precompiled jade template in my jersey rest resource
which has following get method and i mapped to /jadeview
@GET
@Produces(Array(MediaType.TEXT_HTML))
def get =
{
val template = engine.load("example.jade")
val processed = engine.layout("/", template, Map("user" ->
User("Bart")))
println(processed)
Response.ok().entity(processed).build()
}
// and ...
val engine = new TemplateEngine
So everything works just fine till println, the template prints just fine
with passed in values, but somehow on the browser i get the following stack
trace!
http://pastie.org/4360294
I have no clue from here on, any suggestions would be great.