类 MustacheResourceTemplateLoader

  • 所有已实现的接口:
    com.samskivert.mustache.Mustache.TemplateLoader, org.springframework.beans.factory.Aware, org.springframework.context.ResourceLoaderAware

    public class MustacheResourceTemplateLoader
    extends Object
    implements com.samskivert.mustache.Mustache.TemplateLoader, org.springframework.context.ResourceLoaderAware
    Mustache TemplateLoader implementation that uses a prefix, suffix and the Spring Resource abstraction to load a template from a file, classpath, URL etc. A TemplateLoader is needed in the Compiler when you want to render partials (i.e. tiles-like features).
    从以下版本开始:
    1.2.2
    另请参阅:
    Mustache, Resource
    • 方法详细资料

      • setCharset

        public void setCharset​(String charSet)
        Set the charset.
        参数:
        charSet - the charset
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        Set the resource loader.
        指定者:
        setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAware
        参数:
        resourceLoader - the resource loader