Release 4.4 - Kotlin extensions with new raw() method. Async features
- Kotlin Extensions - new
dyn { }lambda with parent Element as receiver to allow the use of implicitthis.
dyn { } lambda with parent Element as receiver to allow the use of implicit this.This release introduces the following new features and fixes:
.l property, which can be used to close tags in Kotlin instead of .__().This release includes the following fixes and updates:
.text() interleaved with attributes is no longer supported and will now throw an exception.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.