java.lang.Object
io.jstach.opt.dropwizard.example.ExampleResource

@Path("/example") @Produces("text/html") public class ExampleResource extends Object
Dropwizard JAXRS example resource highlighting JStachio integration.
Author:
agentgt
  • Constructor Details

  • Method Details

    • hello

      @GET public io.dropwizard.views.common.View hello()
      For this endpoint we create the model and call the model to view mixin JStacheViewSupport.toView(). This approach allows us not to reference the generated template directly.
      Returns:
      jstachio powered view
    • template

      @GET @Path("/template") public io.dropwizard.views.common.View template()
      For this endpoint we use generated template directly and use a mixin method that will generate the view from the model.
      Returns:
      jstachio powered view