#1 2023-09-20 13:24:00

igors233
Member
Registered: 2012-09-10
Posts: 241

Recursive helpers in Mustache

Now it's possible to call multiple helper functions in sequence for example:
{{Upper Lower MyValue}}



However, that's not possible with if, for example:

{{if Upper MyValue,"=","VALUE"}} SomeResult {{/if}} or with
{{if {{Upper MyValue}},"=","VALUE"}} SomeResult {{/if}}

Would it be possible to enhance SynMustache to allow recursive calls to helpers?

Based on previous example, it would first perform Upper on MyVallue and then use that value to evaluate if.

Offline

Board footer

Powered by FluxBB