Resources
Articles
HtmlFlow's design (type-safe templates, higher-order composition, and progressive async rendering) is grounded in peer-reviewed research:
- 2025: Enabling Progressive Server-Side Rendering for Traditional Web Template Engines with Java Virtual Threads, MDPI Software journal. Compares HtmlFlow against other engines, measuring throughput (ab, JMeter) and raw rendering performance (JMH).
- 2024: Progressive Server-Side Rendering with Suspendable Web Templates, 25th WISE conference, Doha. Introduces the suspendable
await/suspendingmodel behind Streaming HTML. - 2023: Enhancing SSR in Low-Thread Web Servers, 19th WebIst conference, Rome. Covers HtmlFlow's async approach (which works with any source) and binding to multiple asynchronous data sources.
- 2020: Text Web Templates Considered Harmful, LNBIP vol. 399. Argues that an HTML DSL (HtmlFlow, kotlinx.html) yields templates governed only by the host language, with no rules of their own.
- 2019: HoT: Unleash Web Views with Higher-order Templates, 15th WebIst conference, Vienna. Describes composing templates through higher-order functions.
- 2018: Modern Type-Safe Template Engines, DZone. An accessible overview and performance comparison.
Talks
Slides and presentations accompanying the research above:
- Progressive Server-Side Rendering with Suspendable Web Templates: WISE 2024 slides.
- Enhancing SSR in Low-Thread Web Servers: WebIst 2023 slides.
- Domain Specific Language generation based on a XML Schema: MSc thesis presentation (Luís Duarte, 2018) on the xmlet generator that produces HtmlFlow's API.
Repositories
- xmlet/HtmlFlow: the library itself (core, Kotlin, Flowifier, and view-loader modules).
- xmlet/HtmlFlow-Datastar: the type-safe Datastar DSL behind the
data-*integration. - xmlet/xsd2poet: the generator that produces HtmlFlow's fluent element API (HtmlApiFaster) from the HTML 5.2 XSD.
- xmlet/spring-petclinic: the Spring PetClinic sample reimplemented with HtmlFlow views.
- xmlet/template-benchmark: JMH benchmark comparing HtmlFlow with other template engines.
- spring-comparing-template-engines: independent throughput benchmark that includes HtmlFlow.
API docs
- HtmlFlow Javadoc: the public API.
- HtmlApiFaster Javadoc: the generated fluent HTML element API underneath HtmlFlow.
- Maven Central: all released artifacts and versions.