title: Is it possible to register custom helpers in Ghost?
body: <p>I am using Ghost as an npm module following <a href="https://github.com/TryGhost/Ghost/wiki/Using-Ghost-as-an-npm-module" rel="nofollow noreferrer">this guide</a>.</p>
  
  <p>I would like to add some custom helpers that I can leverage inside of my themes. Is there a way to do this without changing code inside the Ghost module?</p>
  
  <p>This is my current code:</p>
  
  <pre><code>const ghost = require('ghost');
  const path = require('path');
  const hbs = require('express-hbs');
  
  const config = path.join(__dirname, 'config.js');
  const coreHelpers = {};
  
  coreHelpers.sd_nls  = require('./sd_nls');
  
  // Register a handlebars helper for themes
  function registerThemeHelper(name, fn) {
    hbs.registerHelper(name, fn);
  }
  
  registerThemeHelper('sd_nls', coreHelpers.sd_nls);
  
  ghost({ config: config })
    .then(ghostServer =&gt; ghostServer.start());
  </code></pre>
  
  <p>I think one possible problem is that my <code>hbs</code> is a new handlebars instance, not the same one used by Ghost, therefore when Ghost runs it doesn't include any helpers I've registered. </p>