code: function _basedirWithContext (ctx) {
    let data = ctx && ctx.data
    let $$bud = data && data.root && data.root[ '$$bud' ] || {}
    return $$bud.cwd || process.cwd()
  }
docs: Find basedir from $$bud in Handlebars context.