Passing Handlebars Helpers as an Argument to #if
-
21-12-2019 - |
Pergunta
I'm using a lot of the following in my templates:
{{#if isController}}
To make that line usable, I have to serialize the data and add the isController attribute to it. Instead, I'd like to use an isController Handlebars helper.
Problem: cannot pass another helper as an argument to the #if helper.
Question: Is there a way I can pass a Handlebars helper as an argument to the #if helper?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow