Package htmlflow

Class HtmlFlow

java.lang.Object
htmlflow.HtmlFlow

public class HtmlFlow extends Object
Factory to create HtmlDoc or HtmlView instances corresponding to static HTMl pages or dynamic pages. HtmlView objects depend on a model.
  • Method Details

    • doc

      public static HtmlDoc doc(Appendable out)
      Creates a HtmlDoc object corresponding to a static HTML page (without model dependency) that emits HTML to an output Appendable
      Parameters:
      out - The output Appendable
    • view

      public static HtmlView view(Appendable out, HtmlTemplate template)
      Creates a HtmlView corresponding to a dynamic HtmlPage with a model.
      Parameters:
      out - Output PrintStream.
      template - Function that consumes an HtmlView to produce HTML elements.
    • view

      public static HtmlView view(HtmlTemplate template)
      Creates a HtmlView corresponding to a dynamic HtmlPage with a model.
      Parameters:
      template - Function that consumes an HtmlView to produce HTML elements.
    • viewAsync

      public static HtmlViewAsync viewAsync(HtmlTemplate template)
      Creates a HtmlViewAsync corresponding to a dynamic HtmlPage with an asynchronous model.
      Parameters:
      template - Function that consumes an HtmlView to produce HTML elements.