Binding Integer Variables and Performing Operations in Thymeleaf HTML Templates

Giovanni Pace

Description

Let's extend binding in Thymeleaf with Integer variables: I'll show how to pass numbers from the Spring MVC controller to the template and perform mathematical operations directly in Thymeleaf expressions.