diff --git a/lib/template.js b/lib/template.js index 14f396d..13d2841 100644 --- a/lib/template.js +++ b/lib/template.js @@ -143,6 +143,13 @@ var Hogan = {}; if (key === '.' && isArray(ctx[ctx.length - 2])) { val = ctx[ctx.length - 1]; + if (typeof val === 'object') { + var obj = val; + val = []; + for(var prop in obj) { + val.push(obj[prop]); + } + } } else { for (var i = 1; i < names.length; i++) { found = findInScope(names[i], val, doModelGet);