code: function(name, structure, mode, opts) {
      var found = false;
      for (var i = 0; i < this.RENDER_MODES.length; ++i) {
        if (this.RENDER_MODES[i] === mode) {
          found = true;
          break;
        }
      }
      if (!found) {
        console.error('render mode', mode, 'not supported');
        return;
      }
  
      return this[mode](name, structure, opts);
    }
docs: / simple dispatcher which allows to render using a certain style. will bail out if the render mode does not exist.