diff --git a/lib/template.js b/lib/template.js index 14f396d..6918bdc 100644 --- a/lib/template.js +++ b/lib/template.js @@ -141,11 +141,16 @@ var Hogan = {}; doModelGet = this.options.modelGet, cx = null; + this.missing = this.missing || []; + if (key === '.' && isArray(ctx[ctx.length - 2])) { val = ctx[ctx.length - 1]; } else { for (var i = 1; i < names.length; i++) { found = findInScope(names[i], val, doModelGet); + if(found === undefined && -1 === this.missing.indexOf(key)){ + this.missing.push(key) + } if (found !== undefined) { cx = val; val = found;