pebble icon indicating copy to clipboard operation
pebble copied to clipboard

Expression (ContextVariableExpression) name printing in strictVariables = false mode

Open latyika94 opened this issue 1 year ago • 0 comments

Hi Guys!

I am planning to use Pebble in my application for templating application mails. It's nearly perfect for my usecase, but i do not know how to solve the following problem.

I want to render mail templates on maintenance page on web browser in strictVariables = false mode for users, where they can see more or less how would the mail will be sent with resolved expressions. On maintenance page rendering the template is not a problem, but in strictVariables = false mode every expression became null or "" empty string.

There is a way displaying expression name instead of empty string / null value?

How is looking now: image

What i want to achive: image

Unfortunately i can not provide map of expressions with dummy values in this screen.

Thanks!

latyika94 avatar Sep 21 '23 17:09 latyika94