Skip to content

Commit

Permalink
Add blog post link to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Pearce committed Apr 27, 2016
1 parent e878732 commit fd8c40d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
@@ -1,26 +1,26 @@
# DropWizard external views - example project
# Dropwizard external views - example project

This project illustrates how to add external templates to a DropWizard
This project illustrates how to add external templates to a Dropwizard
application, allowing you, for example, to have dynamic templates for
an evolving set of document types.

It came about after we revisited a client who needed to do exactly that. They
were using DropWizard 0.6.2, and it was unexpectedly difficult to make
were using Dropwizard 0.6.2, and it was unexpectedly difficult to make
changes to templates, or to add new templates to the project. I decided to
investigate how difficult it would be to do the same thing in a more recent
version of DropWizard - 0.9.2.
version of Dropwizard - 0.9.2. Read the full story [here](http://www.elysiansoftware.co.uk/2016/04/27/adding-external-template-locations-to-dropwizard/).


## Updated and extended classes

- `MultiLocationViewBundle` - this is a drop-in replacement for the default
DropWizard `ViewBundle`. It relies on...
- `MultiLocationViewConfiguration` - this extends the default DropWizard
Dropwizard `ViewBundle`. It relies on...
- `MultiLocationViewConfiguration` - this extends the default Dropwizard
`Configuration` class, adding a `views` element with details of the template
locations.
- `ViewsConfiguration` - a configuration class representing the content of the
`views` element held in the `MultiLocationViewConfiguration`.
- `MultiLocationViewRenderer` - an extension to the DropWizard `ViewRenderer`
- `MultiLocationViewRenderer` - an extension to the Dropwizard `ViewRenderer`
interface, adding a `configureLocations()` method.
- multiple location variants of the view renderers for both Freemarker and
Mustache templates. There is quite a lot of duplicated code here,
Expand Down Expand Up @@ -54,4 +54,4 @@ that the jar file should be included in the list of search locations, is

The `renderers` element contains the renderer-specific configuration, and
will be passed to the appropriate Renderer implementation as mentioned
in the [DropWizard Views documentation](http://www.dropwizard.io/0.9.2/docs/manual/views.html).
in the [Dropwizard Views documentation](http://www.dropwizard.io/0.9.2/docs/manual/views.html).

0 comments on commit fd8c40d

Please sign in to comment.