docs: function buildRequiredAssets(self, context) {
    var paths   = context.__requiredPaths__.concat([ self.pathname ]),
        assets  = resolveDependencies(self, paths),
        stubs   = resolveDependencies(self, context.__stubbedAssets__);
  
    if (stubs.length > 0) {
      // exclude stubbed assets if any
      assets = _.filter(assets, function (path) {
        return stubs.indexOf(path) === -1;
      });
    }
  
    prop(self, '__requiredAssets__', assets);
  }