Release 2.1
HtmlFlow version 2.1 was updated to release 1.0.10 of com.github.xmlet.HtmlApi
and
introduces a couple of new features:
-
New
render()
which produces aString
rather then writing to aPrintStream
. Thisrender()
uses internally aStringBuilder
and shows better performance than thewrite()
approach. -
To allow
HtmlView
being a parent element ofHtml
we madeHtmlView<T>
extendAbstractElement<HtmlView<T>, Element>
and turn it compatible withElement
. Yet, it does not supportaccept(ElementVisitor visitor)
norcloneElem()
. -
Fix
Html root
field definition inHtmlView
to include the generic parent asHtml<HtmlView>
and add it as child of thatHtmlView
. -
New static factory method
html()
used to start building aHtmlView
. -
All these features together with the existing
ยบ()
make possible to build a view in a single pass, reducing the number of auxiliary variables capturing intermediate elements. Now all the views of the examples of thisREADME.md
are built in static fields assignment. More usage examples in HtmlTables and HtmlLists.