module.exports = {
  description: 'Generates a controller of the given type.',

  availableOptions: [
    { name: 'type', values: ['basic', 'object', 'array'], default: 'basic' }
  ],

  beforeInstall: function(options) {
    this.lookupBlueprint('controller').beforeInstall(options);
  },
  locals: function(options) {
    return this.lookupBlueprint('controller').locals(options);
  }
};

module.exports = {
  description: 'Generates a controller of the given type.',

  availableOptions: [
    { name: 'type', values: ['basic', 'object', 'array'], default: 'basic' }
  ],

  install: function(options) {
    return this.lookupBlueprint('controller').install(options);
  },

  beforeInstall: function(options) {
    var controllerBlueprint = this.lookupBlueprint('controller');
    return controllerBlueprint.beforeInstall(options);
  },
  locals: function(options) {
    return this.lookupBlueprint('controller').locals(options);
  }
};

Make workaround for controller-generation issue.
Make workaround for controller-generation issue.

Fixes #19
