Class FileTemplateLoader

  • All Implemented Interfaces:
    TemplateLoader

    public class FileTemplateLoader
    extends URLTemplateLoader
    Load templates from the file system. A base path must be specified at creation time. The base path serve as template repository.
    Since:
    0.1.0
    • Constructor Detail

      • FileTemplateLoader

        public FileTemplateLoader​(File basedir,
                                  String suffix)
        Creates a new FileTemplateLoader.
        Parameters:
        basedir - The base directory. Required.
        suffix - The view suffix. Required.
      • FileTemplateLoader

        public FileTemplateLoader​(File basedir)
        Creates a new FileTemplateLoader.
        Parameters:
        basedir - The base directory. Required.
      • FileTemplateLoader

        public FileTemplateLoader​(String basedir,
                                  String suffix)
        Creates a new FileTemplateLoader.
        Parameters:
        basedir - The base directory. Required.
        suffix - The view suffix. Required.
      • FileTemplateLoader

        public FileTemplateLoader​(String basedir)
        Creates a new FileTemplateLoader.
        Parameters:
        basedir - The base directory. Required.