Mustache

Mustache is a simple template engine that is available in various languages. We will now use Mustache.js, the template engine in JavaScript. Mustache is often seen as logic-less, as it lacks explicit control flow statements. Control flow is achieved by using section tags.

Refer to http://mustache.github.io/ for more details about Mustache.

Now, let's try to configure Mustache to render our Fibonacci series. We don't need any other dependencies in our build.gradle:

plugins {    id "io.spring.dependency-management" version "1.0.1.RELEASE"    id "org.springframework.boot" version "2.0.3.RELEASE"}apply plugin: 'java'// Rest removed for Brevitydependencies {        compile 'org.springframework.boot:spring-boot-starter-webflux'}

The Spring framework ...

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.