public class MustacheResourceTemplateLoader extends Object implements com.samskivert.mustache.Mustache.TemplateLoader, org.springframework.context.ResourceLoaderAware
Mustache.TemplateLoader
is needed in the Mustache.Compiler
when you want to render
partials (i.e. tiles-like features).Mustache
,
Resource
Constructor and Description |
---|
MustacheResourceTemplateLoader() |
MustacheResourceTemplateLoader(String prefix,
String suffix) |
Modifier and Type | Method and Description |
---|---|
Reader |
getTemplate(String name) |
void |
setCharset(String charSet)
Set the charset.
|
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Set the resource loader.
|
public void setCharset(String charSet)
charSet
- the charsetpublic void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
resourceLoader
- the resource loaderCopyright © 2020 Pivotal Software, Inc.. All rights reserved.