Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Prevent context jumping in Mustache

$
0
0
According to the doc: 
If a key is not found within the current context, Mustache will look for the key in the parent context and so on until it resolves the object or reaches the parent most object. 
 
Is there a way to force mustache to only look for the key at the current context and not look in the parent context?
Looks like you can do it in Handlebars with, but I get an error if I try this in mustache
<p>{{./name}} or {{this/name}} or {{this.name}}</p> 



Viewing all articles
Browse latest Browse all 3491

Trending Articles