jsFiddle Example: Accessing Higher Contexts in Mustache Templates
- July 28, 2014 8:53 AM
- Comments (0)
A neat bit of Mustache implementation that I'd not really used before but needed: Mustache allows you to access higher contexts by reference, as long as there is not a conflict. A very clean solution unless you have values with a conflicting names, in which case the current context takes precedence.
I totally found this example through a Google search. I claim no ownership, although I did modify it slightly.