package com.oreilly.rdf.tenuki.jaxrs;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import com.sun.jersey.api.view.Viewable;

@Path("/")
public class UIResource {

	@GET
	public Viewable landingPage() {
		return new Viewable("/templates/test.vm");
	}
}

@@ -82,16 +82,105 @@
 .Path;%0A%0A
+import org.apache.velocity.VelocityContext;%0Aimport org.apache.velocity.context.Context;%0A%0A
 import c
@@ -290,16 +290,53 @@
 age() %7B%0A
+%09%09Context c = new VelocityContext();%0A
 %09%09return
@@ -369,16 +369,19 @@
 test.vm%22
+, c
 );%0A%09%7D%0A%7D%0A

Create a context even if we aren't using it just at the moment