diff --git a/mustache.js b/mustache.js index 04e9b00..1b79cd5 100644 --- a/mustache.js +++ b/mustache.js @@ -345,6 +345,23 @@ var Mustache = (function(undefined) { return undefined; } + function find_with_dot_notation(name, context) { + var name_components = name.split('.'), + i = 1, n = name_components.length, + value = find_in_stack(name_components[0], context); + + while (value && i