lib/http/content.js
function init(path, name) {  // {{{2
/**
 * Class constructor
 *
 * @param name {String} Name of HttpContent instance
 * @param path {String} Path to content
 *
 * @method init
 */

  this.modules = {};
  this.handlers = {};
  this.scripts = [];
  this.styles = [];

  this.path = path || Path.dirname(this.O.module.filename);
  this.name = name || this.O.packageName || this.O.package.packageName;

//  O.log.debug('Content', this.toString());

  Http.addContent(this);

  this.addFiles && this.addFiles();
}
function init(path, name) {  // {{{2
/**
 * Class constructor
 *
 * @param name {String} Name of HttpContent instance
 * @param path {String} Path to content
 *
 * @method init
 */

  this.modules = {};
  this.handlers = {};
  this.scripts = [];
  this.styles = [];

  this.path = path || Path.dirname(this.O.module.filename);
  this.name = name || this.O.packageName || this.O.package.packageName;

//  O.log.debug('Content', this.toString());

  Http.addContent(this);

  this.addFiles && this.addFiles();
}
function init ( path , name ) { // {{{2 /**
 * Class constructor
 *
 * @param name {String} Name of HttpContent instance
 * @param path {String} Path to content
 *
 * @method init
 */ this . modules = { } ; this . handlers = { } ; this . scripts = [ ] ; this . styles = [ ] ; this . path = path || Path . dirname ( this . O . module . filename ) ; this . name = name || this . O . packageName || this . O . package . packageName ; //  O.log.debug('Content', this.toString()); Http . addContent ( this ) ; this . addFiles && this . addFiles ( ) ; }
List of handlers provided by this content instance.

@property handlers
@type Object
 Public {{{1
List of handlers provided by this content instance .