fixes missing helper

closes #521

- changes handlebars default missing helper function to log error instead of throwing error
This commit is contained in:
cobbspur 2013-08-25 15:16:02 +01:00
parent fafead5718
commit fbe44a041c

View File

@ -284,6 +284,12 @@ coreHelpers = function (ghost) {
});
});
ghost.registerThemeHelper('helperMissing', function (arg) {
if (arguments.length === 2) {
return undefined;
}
errors.logError("Missing helper: '" + arg + "'");
});
// Return once the template-driven helpers have loaded
return when.join(
navHelper,