You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on an array, try looping in it to generate one file per item in the array and access the item value in the corresponding file.
NOTE -> this issue happens only when the code is poorly written but I needed a couple of tries to figure it out (if the dart code is correct there are no issues).
No specific expected behavior. Don't know if it's possible to evaluate {{arrayValues.valueName}} besides the wrong dart code or if an error can be thrown in the cli.
Screenshots
As you can see the generated file doesn't evaluate {{arrayValues.valueName}}
The text was updated successfully, but these errors were encountered:
I believe the issue is due to the fact that this expression is not interpreted as valid due to the imbalanced brackets. I think you should be able to rewrite it as:
Yeah for sure first of all the code example is wrong. This helps for sure. The thing that puzzles me is that if you have more than one call to {{arrayValues.valueName}} if one is broken then all of them are. I think it definitely has something to do with the render method from mustache_template but not sure.
By the way, thanks a lot!
Description
Based on an array, try looping in it to generate one file per item in the array and access the item value in the corresponding file.
NOTE -> this issue happens only when the code is poorly written but I needed a couple of tries to figure it out (if the dart code is correct there are no issues).
Steps To Reproduce
{{#arrayValues}}{{{valueName}}}_name_checker.dart{{/arrayValues}}
mason make
Expected Behavior
No specific expected behavior. Don't know if it's possible to evaluate {{arrayValues.valueName}} besides the wrong dart code or if an error can be thrown in the cli.
Screenshots
As you can see the generated file doesn't evaluate {{arrayValues.valueName}}
The text was updated successfully, but these errors were encountered: