This question is similar to the post "Ajax call - Spring Integration".
Background. I'm using the following dependency:
<dependency>
<groupId>com.mitchellbosecke</groupId>
<artifactId>pebble-spring-boot-starter</artifactId>
<version>2.2.1</version>
</dependency>
In a REST controller, I'd like to return an object that includes also a rendered template in the form of a string. I come from a Freemarker experience, where you have an utility class that has a method meant to translate a template into a string.
FreeMarkerTemplateUtils.processTemplateIntoString()
I'm wondering how to do the same in Pebble. Any example?