PebbleTemplates / pebble

Java Template Engine
https://pebbletemplates.io
BSD 3-Clause "New" or "Revised" License
1.1k stars 168 forks source link

Is the expression interpolation recursive? #659

Open s666p opened 1 year ago

s666p commented 1 year ago

Hello everyone. It is very important for my project to use a template engine that recursively renders expression pointing to other expression.

For example, we have the following context:

name->{{key1}}
key1->{{key2}}
key2->Jared

and this template: Hello, {{name}}

I need the following recursive behavior:

render(name) --> render(key1) ----> render(key2)

with output: Hello, Jared

Could you please tell me if this functionality is available? If so, how do I turn it on? If not, are there any other options?