Scripting

SpringWebFlux is also capable of using various scripting libraries for view ending. It uses the JSR-223 Java Scripting engine specification to integrate various scripting engines. At the time of writing this book, the following integrations are available:

  • Handlebars, using the Nashrom engine
  • Mustache, using the Nashrom engine
  • React, using the Nashrom engine
  • EJS, using the Nashrom engine
  • ERB, using the JRuby engine
  • String, using the Jython engine
  • Kotlin, using the Kotlin engine

In the following section, we will cover integration with Mustache. The integrations for the other options are similar.

Get Hands-On Reactive Programming with Reactor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.