Open jsloth opened 2 years ago
@jsloth I do not recommend doing {{#if (zcl_command_arguments_count this.id)}}
because zcl_command_arguments_count
returns a promise so it may end up just being if <pending promise>
(Which will be true) if the promise is not resolved in time and your results may not be as expected.
For something like this there are 2 ways to approach your problem:
This is still an issue in the template just ran across it. I can look into this.
Zap fails to generate output file, but it doesn't give an any error.
I have learned that
{{#if (zcl_command_arguments_count this.id)}}
is invalid and should cause a failure, so this is regarding Zap silently failing instead of giving an error.Following template is a simplified example of reproducing the issue.
Output from when running Zap.