mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
commit
a7f2c0e7d3
1 changed files with 6 additions and 0 deletions
|
@ -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 once the template-driven helpers have loaded
|
||||||
return when.join(
|
return when.join(
|
||||||
navHelper,
|
navHelper,
|
||||||
|
|
Loading…
Add table
Reference in a new issue