Permalink
Browse files

Merge remote-tracking branch 'georgecalm/patch-1'

  • Loading branch information...
2 parents 13451a2 + b74956b commit e3c92427c0f088b1cb4ec3a041fd738b78fe0b12 @raycmorgan committed Aug 20, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/mu.js
View
@@ -105,7 +105,8 @@ mu.render = function (filenameOrParsed, view) {
mu.cache[filenameOrParsed];
if (parsed) {
- return beginRender(parsed[0].tokens, view, mu.cache);
+ parsed = parsed[0] || parsed;
+ return beginRender(parsed.tokens, view, mu.cache);
} else {
throw new Error('template_not_in_cache'); //errors.templateNotInCache(filename)));
}

0 comments on commit e3c9242

Please sign in to comment.