- Notifications
You must be signed in to change notification settings - Fork235
-
My model contains data that are multi-dimensional, and my first attempt was to implement this as a regular C# multidimensional array similar to this:
When trying to access this type of object from a template, Handlebars.Net threw an exception complaining it could not convert from object[ , ] to object[]. Then I changed my model implementation to jagged arrays (similar to this): This works just fine with Handlebars.Net. Question: Is the lack of support for regular multidimensional arrays intentional, or is it a missing feature or bug? As regular, multidimensional arrays are more efficient, at least for 2D arrays according to C# guidelines, I think it is a good idea to add support for it. It will also help avoid having to change the implementation of an already existing model. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment
-
Hello@nooelan You can provide your custom Value at [2,2]:{{array.2.2}} Note: |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1