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 aStringrather then writing to aPrintStream. Thisrender()uses internally aStringBuilderand shows better performance than thewrite()approach. -
To allow
HtmlViewbeing a parent element ofHtmlwe madeHtmlView<T>extendAbstractElement<HtmlView<T>, Element>and turn it compatible withElement. Yet, it does not supportaccept(ElementVisitor visitor)norcloneElem(). -
Fix
Html rootfield definition inHtmlViewto 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.mdare built in static fields assignment. More usage examples in HtmlTables and HtmlLists.