Skip to content
Browse files

Making sure the "filenameOrParsed" param of mu.render does not need t…

…o be an array.
  • Loading branch information...
1 parent abfe811 commit b74956bc472b6475e5a69cc6caa8f9923682e761 @nemtsov nemtsov committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/mu.js
View
3 lib/mu.js
@@ -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 b74956b

Please sign in to comment.
Something went wrong with that request. Please try again.