I tried to look this up in the handlebars and mustache documentation, but it seems undocumented. Anyways, partials should be able to accept an argument that establishes a new context:
Before my pull request, you would get an error that the template "files files" wasn't found. With the pull request, the template renders the property "files" as "this". The result looks like this:
I tried to look this up in the handlebars and mustache documentation, but it seems undocumented. Anyways, partials should be able to accept an argument that establishes a new context:
http://stackoverflow.com/questions/11523331/passing-variables-through-handlebars-partial
Example
base.hbs:
files.hbs:
data:
Before my pull request, you would get an error that the template "files files" wasn't found. With the pull request, the template renders the property "files" as "this". The result looks like this: