Change default file extension for Mustache templates

This commit changes the default file extension for Mustache templates,
from `.html` to `.mustache`, which is the file extension used in the
official reference documentation and by most IDE plugins.

Fixes gh-8997
This commit is contained in:
Brian Clozel 2017-04-28 14:12:26 +02:00
parent 4d5dcca553
commit f2c63706da
5 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class MustacheProperties extends AbstractTemplateViewResolverProperties {
public static final String DEFAULT_PREFIX = "classpath:/templates/";
public static final String DEFAULT_SUFFIX = ".html";
public static final String DEFAULT_SUFFIX = ".mustache";
/**
* Prefix to apply to template names.

View File

@ -372,7 +372,7 @@ content into your application; rather pick only the properties that you need.
spring.mustache.expose-spring-macro-helpers= # Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
spring.mustache.prefix=classpath:/templates/ # Prefix to apply to template names.
spring.mustache.request-context-attribute= # Name of the RequestContext attribute for all views.
spring.mustache.suffix=.html # Suffix to apply to template names.
spring.mustache.suffix=.mustache # Suffix to apply to template names.
spring.mustache.view-names= # White list of view names that can be resolved.
# SPRING MVC ({sc-spring-boot-autoconfigure}/web/WebMvcProperties.{sc-ext}[WebMvcProperties])