Search in sources :

Example 1 with MustacheViewRenderer

use of io.dropwizard.views.mustache.MustacheViewRenderer in project microservices by pwillhan.

the class ServiceApplication method initializeViews.

private void initializeViews(final Bootstrap<ServiceConfiguration> bootstrap) {
    List<ViewRenderer> viewRenders = new ArrayList<>();
    viewRenders.add(new MustacheViewRenderer());
    bootstrap.addBundle(new ViewBundle<>(viewRenders));
    bootstrap.addBundle(new AssetsBundle("/assets", "/assets"));
}
Also used : MustacheViewRenderer(io.dropwizard.views.mustache.MustacheViewRenderer) ViewRenderer(io.dropwizard.views.ViewRenderer) MustacheViewRenderer(io.dropwizard.views.mustache.MustacheViewRenderer) ArrayList(java.util.ArrayList) SwaggerAssetsBundle(io.paradoxical.dropwizard.swagger.SwaggerAssetsBundle) AssetsBundle(io.dropwizard.assets.AssetsBundle)

Aggregations

AssetsBundle (io.dropwizard.assets.AssetsBundle)1 ViewRenderer (io.dropwizard.views.ViewRenderer)1 MustacheViewRenderer (io.dropwizard.views.mustache.MustacheViewRenderer)1 SwaggerAssetsBundle (io.paradoxical.dropwizard.swagger.SwaggerAssetsBundle)1 ArrayList (java.util.ArrayList)1