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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.