Package htmlflow
Class HtmlFlow
java.lang.Object
htmlflow.HtmlFlow
Factory to create HtmlDoc or HtmlView instances corresponding to static HTMl pages or dynamic pages.
HtmlView objects depend on a model.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlDocdoc(Appendable out) Creates a HtmlDoc object corresponding to a static HTML page (without model dependency) that emits HTML to an output Appendablestatic HtmlViewview(HtmlTemplate template) Creates a HtmlView corresponding to a dynamic HtmlPage with a model.static HtmlViewview(Appendable out, HtmlTemplate template) Creates a HtmlView corresponding to a dynamic HtmlPage with a model.static HtmlViewAsyncviewAsync(HtmlTemplate template) Creates a HtmlViewAsync corresponding to a dynamic HtmlPage with an asynchronous model.
-
Method Details
-
doc
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
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
Creates a HtmlView corresponding to a dynamic HtmlPage with a model.- Parameters:
template- Function that consumes an HtmlView to produce HTML elements.
-
viewAsync
Creates a HtmlViewAsync corresponding to a dynamic HtmlPage with an asynchronous model.- Parameters:
template- Function that consumes an HtmlView to produce HTML elements.
-