Class TemplateResult

java.lang.Object
dev.voidframework.web.http.TemplateResult

public final class TemplateResult extends Object
Indicates that the elements necessary for the result to be processed by the template engine.
  • Field Details

    • templateName

      public final String templateName
      The name of the template to render.
    • dataModel

      public final Map<String,Object> dataModel
      The data model to use.
  • Method Details

    • of

      public static TemplateResult of(String templateName)
      Build a new instance.
      Parameters:
      templateName - The name of the template to render
      Returns:
      Newly created instance
    • of

      public static TemplateResult of(String templateName, Map<String,Object> dataModel)
      Build a new instance.
      Parameters:
      templateName - The name of the template to render
      dataModel - The data model to use
      Returns:
      Newly created instance
    • of

      public static TemplateResult of(String templateName, Object dataModel)
      Build a new instance.
      Parameters:
      templateName - The name of the template to render
      dataModel - The data model to use
      Returns:
      Newly created instance