Release 3.0
-
Improved performance. HtmlFlow is on this date the most performant template engine and Java DSL for HTML.
-
Replaced the method
º()
by__()
. -
New static factory methods
view()
of the new classesDynamicHtml
andStaticHtml
-
Removed the static factory methods
html()
,head()
anddiv()
fromHtmlView
. -
Html code is emitted on the fly when the methods of
HtmlApi
(e.g.html()
,div()
,h1()
, etc) are called. -
Now
HtmlView
is just a container of a template function and anElementVisitor
, 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. -
New method
of()
to enable the use of other methods in the fluent chain. -
New
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 objectU
that is captured and used whenever is needed, such as indynamic()
.