Class HTMLGenerator


public class HTMLGenerator extends Object
Template engine, primarily used for generating Skript documentation pages by combining data from annotations and templates.
  • Constructor Details

    • HTMLGenerator

      public HTMLGenerator(File templateDir, File outputDir)
  • Method Details

    • generate

      public void generate()
      Generates documentation using template and output directories given in the constructor.
    • getDefaultIfNullOrEmpty

      public String getDefaultIfNullOrEmpty(@Nullable String string, String message)
      Checks if a string is empty or null then it will return the message provided
      string - the String to check
      message - the String to return if either condition is true
    • getDefaultIfNullOrEmpty

      public String[] getDefaultIfNullOrEmpty(@Nullable String[] string, String message)