@Bean public ISpringWebFluxTemplateEngine thymeleafTemplateEngine() { // We override here the SpringTemplateEngine instance that would otherwise be // instantiated by // Spring Boot because we want to apply the SpringWebFlux-specific context // factory, link builder... final SpringWebFluxTemplateEngine templateEngine = new SpringWebFluxTemplateEngine(); templateEngine.setTemplateResolver(thymeleafTemplateResolver()); return templateEngine; }
final String dataDriverVariableName = findDataDriverInModel(context); if (dataDriverVariableName != null) { return createDataDrivenStream( template, markupSelectors, context, dataDriverVariableName, bufferFactory, charset, chunkSizeBytes, sse); return createFullStream(template, markupSelectors, context, bufferFactory, charset); return createChunkedStream( template, markupSelectors, context, bufferFactory, charset, responseMaxChunkSizeBytes);
final IContext wrappedContext = applyDataDriverWrapper(context, dataDriverVariableName, dataDrivenIterator); new TemplateSpec(templateName, markupSelectors, outputContentType, null); return new StreamThrottledTemplateProcessor( processThrottled(templateSpec, wrappedContext), dataDrivenIterator, sseEventsPrefix, sseEventsID, sse); },
process(templateName, markupSelectors, context, writer);
@Bean public ISpringWebFluxTemplateEngine thymeleafTemplateEngine() { // We override here the SpringTemplateEngine instance that would otherwise be // instantiated by // Spring Boot because we want to apply the SpringWebFlux-specific context // factory, link builder... final SpringWebFluxTemplateEngine templateEngine = new SpringWebFluxTemplateEngine(); templateEngine.setTemplateResolver(thymeleafTemplateResolver()); return templateEngine; }
@Bean public ISpringWebFluxTemplateEngine thymeleafTemplateEngine() { // We override here the SpringTemplateEngine instance that would otherwise be // instantiated by // Spring Boot because we want to apply the SpringWebFlux-specific context // factory, link builder... final SpringWebFluxTemplateEngine templateEngine = new SpringWebFluxTemplateEngine(); templateEngine.setTemplateResolver(thymeleafTemplateResolver()); return templateEngine; }