O'Reilly logo

Hands-On Reactive Programming with Reactor by Rahul Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required