Class ClassPathTemplateLoader

  • All Implemented Interfaces:
    TemplateLoader

    public class ClassPathTemplateLoader
    extends URLTemplateLoader
    Load templates from the class-path. A base path can be specified at creation time. By default all the templates are loaded from '/' (a.k.a. root classpath).
    Since:
    0.1.0
    • Constructor Detail

      • ClassPathTemplateLoader

        public ClassPathTemplateLoader​(java.lang.String prefix,
                                       java.lang.String suffix)
        Parameters:
        prefix - The view prefix. Required.
        suffix - The view suffix. Required.
      • ClassPathTemplateLoader

        public ClassPathTemplateLoader​(java.lang.String prefix)
        Parameters:
        prefix - The view prefix. Required.
      • ClassPathTemplateLoader

        public ClassPathTemplateLoader()
        Creates a new ClassPathTemplateLoader. It looks for templates stored in the root of the classpath.