docs: function getPartialRenderFn(partial, partialName) {
      var jangularDeps = this.getJangularDeps();
      var me = this;
  
      return function renderPartial(model, elem, attrs) {
          me.isolateScope(model, partial.scope, attrs);
  
          // throw error if onScopeChange values not in the scope {} definition
          me.checkOnScopeChangeVals(partial, partialName);
  
          // set defaults before the modify model
          me.setDefaults(model, partial.defaults, partial.scope);
  
          // set the presets if they exist
          me.applyPresets(model, partial.defaults, partial.presets);
  
          // if model is injection function, just use that
          me.evalModel(model, partial.scope, partial.model, partialName);
  
          // this is similar to both jng.pages renderPage()
          // as well as ng.uipart.template (for client side pages and partials)
          me.attachToScope(model, partial.attachToScope);
  
          // generate the partial view
          var dependencies = _.extend({ subviews: me.getSubviews(partial.subviews) }, jangularDeps);
          return me.pancakes.cook(partial.view, { dependencies: dependencies });
      };
  }