jehugaleahsa / mustache-sharp

An extension of the mustache text template engine for .NET.
The Unlicense
306 stars 78 forks source link

Added ability to access array elements, and this[] accessors #57

Open nikkilocke opened 8 years ago

nikkilocke commented 8 years ago

Added ability to access array elements, this[int] and this[string] accessors, using the mustache syntax "object.[1]".

nikkilocke commented 8 years ago

Hi Bryant,

I have separated out the array index code into a separate branch, and added a pull request. I hope I have done it the right way this time?

Regards,

Nikki

comish commented 8 years ago

@nikkilocke This is exactly what I'm looking for at the moment! I hope it gets merged with the master branch as it would make a lot of my code and templates considerably simpler. Many Thanks!