Release 4.1 Minor enhancements
This release introduces the following enhancements:
- HTML boolean attributes are no longer emitted when assigned a
falsevalue.
This release introduces the following enhancements:
false value.This release introduces the following changes when migrating from HtmlFlow 3.x to 4.x:
DynamicHtml and StaticHtml are replaced by HtmlView and HtmlDoc, respectively. Both inherit from the new HtmlPage type.DynamicHtml.view() and StaticHtml.view() have been moved to the HtmlFlow class, becoming HtmlFlow.view() and HtmlFlow.doc().A new custom element feature allows defining HtmlFlow views, as shown in the listing at the end of this post. This feature applies to both static and dynamic views.
You can find this sample in the unit tests at htmlflow.test.views.HtmlCustomElements.
Invoking .custom("alert-info") returns an instance of the new CustomElement class, which inherits from the existing Div class. As a result, the returned instance has most HTML features available.
When a parent template is initialized with a PrintStream, any internal use of addPartial() will now implicitly use that PrintStream, regardless of the output approach defined during the partial view's instantiation.
Fixed code smells related to Generics and other use cases.
We have provided a standard implementation of the sample Spring-based pet clinic web application integrated with HtmlFlow views at github.com/xmlet/spring-petclinic.
The target Java runtime has been downgraded to 1.8.
This version introduces the first release of Flowifier, an HTML to HtmlFlow translator developed by Julien Gouesse.
This release introduces the following changes:
Views are now made immutable.