public class MustacheTemplateAvailabilityProvider extends Object implements TemplateAvailabilityProvider
TemplateAvailabilityProvider
that provides availability information for
Mustache view templates.Constructor and Description |
---|
MustacheTemplateAvailabilityProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTemplateAvailable(String view,
org.springframework.core.env.Environment environment,
ClassLoader classLoader,
org.springframework.core.io.ResourceLoader resourceLoader)
Returns
true if a template is available for the given view . |
public MustacheTemplateAvailabilityProvider()
public boolean isTemplateAvailable(String view, org.springframework.core.env.Environment environment, ClassLoader classLoader, org.springframework.core.io.ResourceLoader resourceLoader)
TemplateAvailabilityProvider
true
if a template is available for the given view
.isTemplateAvailable
in interface TemplateAvailabilityProvider
view
- the view nameenvironment
- the environmentclassLoader
- the class loaderresourceLoader
- the resource loaderCopyright © 2017 Pivotal Software, Inc.. All rights reserved.