Passing Handlebars Helpers as an Argument to #if
-
21-12-2019 - |
题
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?
解决方案
不隶属于 StackOverflow