Improved performance. HtmlFlow is on this date the most performant template engine and Java DSL for HTML.
Replaced the method
New static factory methods
view()of the new classes
Removed the static factory methods
Html code is emitted on the fly when the methods of
h1(), etc) are called.
HtmlViewis just a container of a template function and an
ElementVisitor, which establishes the HTML output format.
All emitted HTML is cached.
Data binding requires the use of new method
dynamic()to avoid caching. Otherwise, the context objects are ignored on further renders.
of()to enable the use of other methods in the fluent chain.
addPartial()to enable the reuse of same HTML template function with different HTML fragments.
Removed the method
binder(). The role of this method is replaced by the concept of template function which receives the context object
Uthat is captured and used whenever is needed, such as in