From 80016b2ea516a37b1dd9e8f4f1e52a7787bf153b Mon Sep 17 00:00:00 2001 From: "Martin W. Kirst" Date: Wed, 26 Jan 2022 15:38:55 +0100 Subject: [PATCH] =?UTF-8?q?feat(ui)=20show=20=E2=8D=B0=20as=20default=20va?= =?UTF-8?q?lue=20in=20case=20of=20missing=20variables=20in=20mustache=20te?= =?UTF-8?q?mplates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java b/src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java index d80a59b4..dcee51b7 100644 --- a/src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java +++ b/src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java @@ -15,6 +15,7 @@ */ package io.zeebe.monitor; +import com.samskivert.mustache.Mustache; import io.camunda.zeebe.spring.client.EnableZeebeClient; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -53,4 +54,10 @@ public Executor asyncExecutor() { executor.initialize(); return executor; } + + @Bean + public Mustache.Compiler configureFallbackValueForMissingVariablesInMustacheTemplates( + Mustache.TemplateLoader templateLoader) { + return Mustache.compiler().defaultValue("⍰").withLoader(templateLoader); + } }