Skip to content

Commit 54b3aa6

Browse files
committed
Merge pull request #18378 from dreis2211
* pr/18378: Add Mustache to 'Customize ViewResolvers' docs section Closes gh-18378
2 parents 17df6ab + 208fb8f commit 54b3aa6

File tree

1 file changed

+5
-0
lines changed
  • spring-boot-project/spring-boot-docs/src/main/asciidoc

1 file changed

+5
-0
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,11 @@ If you add your own, you have to be aware of the order and in which position you
11621162
It looks for resources in a loader path by surrounding the view name with a prefix and suffix (externalized to `spring.groovy.template.prefix` and `spring.groovy.template.suffix`).
11631163
The prefix and suffix have default values of '`classpath:/templates/`' and '`.tpl`', respectively.
11641164
You can override `GroovyMarkupViewResolver` by providing a bean of the same name.
1165+
* If you use Mustache, you also have a `MustacheViewResolver` named '`mustacheViewResolver`'.
1166+
It looks for resources by surrounding the view name with a prefix and suffix.
1167+
The prefix is `spring.mustache.prefix`, and the suffix is `spring.mustache.suffix`.
1168+
The values of the prefix and suffix default to '`classpath:/templates/`' and '`.mustache`', respectively.
1169+
You can override `MustacheViewResolver` by providing a bean of the same name.
11651170

11661171
For more detail, see the following sections:
11671172

0 commit comments

Comments
 (0)