-
Notifications
You must be signed in to change notification settings - Fork 168
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
PebbleTemplateAvailabilityProvider doesn't find template files from the classpath #464
Milestone
Comments
Mustache uses MustacheProperties.DEFAULT_PREFIX which has "classpath:" prefix. |
Oh my bad ... so we need to change the default prefix |
ebussieres
added a commit
that referenced
this issue
Aug 22, 2019
Signed-off-by: Eric Bussieres <[email protected]>
ebussieres
added a commit
that referenced
this issue
Aug 22, 2019
Signed-off-by: Eric Bussieres <[email protected]>
ebussieres
pushed a commit
that referenced
this issue
Aug 22, 2019
Signed-off-by: Eric Bussieres <[email protected]>
ebussieres
pushed a commit
that referenced
this issue
Aug 22, 2019
Signed-off-by: Eric Bussieres <[email protected]>
ebussieres
added a commit
that referenced
this issue
Aug 22, 2019
ebussieres
added a commit
that referenced
this issue
Aug 24, 2019
Gonna be fixed in next version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spring Boot : 2.1.7
pebble-spring-boot-starter : 3.1.0
PebbleTemplateAvailabilityProvider always fails to find the template files like:
In PebbleTemplateAvailabilityProvider.java, this code returns always false.
resourceLoader
wasAnnotationConfigServletWebServerApplicationContext
in my app, and the getResource() needs "classpath:" prefix to find a template file.Before commit 0229ac7, PebbleTemplateAvailabilityProvider does so.
If ResourceLoader.CLASSPATH_URL_PREFIX is not wanted in some cases, both
prefix + view + suffix
andResourceLoader.CLASSPATH_URL_PREFIX + prefix + view + suffix
should be tried.The text was updated successfully, but these errors were encountered: