capotej/finatra — pull request #36 by morria (2013-02-17 19:34:21+00:00)
Title: Force mustache partials to be uncached from the local filesystem in development mode.

Mustache.java's DefaultMustacheFactory uses the [classloader](https://github.com/spullara/mustache.java/blob/master/compiler/src/main/java/com/github/mustachejava/DefaultMustacheFactory.java#L97) to load mustache partials even when Finatra is in development mode. This has the effect of causing any partials to be loaded once from target/classes with any changes not showing up until the Finatra service is bounced.

This patch inhibits the use of the [classloader](https://github.com/spullara/mustache.java/blob/master/compiler/src/main/java/com/github/mustachejava/DefaultMustacheFactory.java#L97) when loading resources while in development mode. It also flushes mustache.java's [template cache](https://github.com/spullara/mustache.java/blob/master/compiler/src/main/java/com/github/mustachejava/DefaultMustacheFactory.java#L34) on each render.