Beispiel #1
0
  @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);
  }
Beispiel #2
0
  @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);
  }