Class TemplateUtil

  • All Implemented Interfaces:

    
    public final class TemplateUtil
    
                        

    Class used to process freemarkers templates

    Since:

    5.1

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static Configuration getTemplateConfig() Give a basic templateConfiguration
      static void processTemplate(File template, File outputFile, Configuration templateConfig, Map<String, String> data) Process a given freemarker template and put its result in a new folder.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getTemplateConfig

         static Configuration getTemplateConfig()

        Give a basic templateConfiguration

        Returns:

        a Configuration

      • processTemplate

         static void processTemplate(File template, File outputFile, Configuration templateConfig, Map<String, String> data)

        Process a given freemarker template and put its result in a new folder.

        Parameters:
        template - file that contains the freemarker template to process
        outputFile - File created from template
        templateConfig - Configuration of the template
        data - to inject in the template