What I'm proposing is that this should be possible to do without having to turn the "actions" array into a function that returns an array. Above it's done purely to create my own dynamic template for the pattern property because pattern is not transformed using Handlebars, so I need to do it manually using data.methodName
Alternatively, you can close this issue and tell me to reorganize my imports in such a way where this magic isn't necessary :P
Say you want to turn:
into
To do that, you'll need to do
What I'm proposing is that this should be possible to do without having to turn the "actions" array into a function that returns an array. Above it's done purely to create my own dynamic template for the
pattern
property becausepattern
is not transformed using Handlebars, so I need to do it manually usingdata.methodName
Alternatively, you can close this issue and tell me to reorganize my imports in such a way where this magic isn't necessary :P