Package io.jstach.opt.spring.webflux

@NonNullByDefault package io.jstach.opt.spring.webflux

Spring Webflux integration

This package provides a AbstractSingleValueEncoder that will encode JStache models that are contained by Flux or Monos.

To add the encoder to your application use: WebFluxConfigurer.

N.B. JStachio generated code is not reactive! However in practice it matters little if your models do not contain reactive datatypes (which jstachio currently does not support anyway) and are not generating massive responses.

If you do need streaming or have a rather large result it might be best to use a Flux of models and then apply reactive operators to add header and footer.