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 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.