Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force mustache partials to be uncached from the local filesystem in development mode. #36

Merged
merged 1 commit into from Feb 18, 2013

Conversation

@morria
Copy link
Contributor

@morria morria commented Feb 17, 2013

Mustache.java's DefaultMustacheFactory uses the classloader 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 when loading resources while in development mode. It also flushes mustache.java's template cache on each render.

…for loading mustache partials while in development mode. Also, flushing the mustache caches on each render while in development mode so that edits to templates included as partials will show up in the browser
capotej added a commit that referenced this pull request Feb 18, 2013
Force mustache partials to be uncached from the local filesystem in development mode.
@capotej capotej merged commit b0c587b into twitter:master Feb 18, 2013
1 check passed
1 check passed
@capotej
default The Travis build passed
Details
cacoco pushed a commit that referenced this pull request May 13, 2015
Force mustache partials to be uncached from the local filesystem in development mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants