@GET @Path("/photon") @Produces(MediaType.TEXT_HTML) public String foo2() { Map<String, Object> context = new HashMap<String, Object>(); loadCommonContext(context); return parser.parse(Templates.PHOTON, context); }
@GET @Path("/index") @Produces(MediaType.TEXT_HTML) public String foo() { Map<String, Object> context = new HashMap<String, Object>(); loadCommonContext(context); context.put("fingers", fingers); return parser.parse(Templates.INDEX, context); }