mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
19 lines
494 B
JavaScript
19 lines
494 B
JavaScript
|
const registry = require('./registry');
|
||
|
|
||
|
const path = require('path');
|
||
|
|
||
|
// Initialise Ghost's own helpers
|
||
|
// This is a weird place for this to live!
|
||
|
const init = async () => {
|
||
|
const helperPath = path.join(__dirname, '../../', 'helpers');
|
||
|
return await registry.registerDir(helperPath);
|
||
|
};
|
||
|
|
||
|
// Oh look! A framework for helpers :D
|
||
|
module.exports = {
|
||
|
registerAlias: registry.registerAlias,
|
||
|
registerDir: registry.registerDir,
|
||
|
registerHelper: registry.registerHelper,
|
||
|
init
|
||
|
};
|