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.