index.js
function Pagelet(options) {
  if (!this) return new Pagelet(options);

  this.fuse();
  options = options || {};

  //
  // Use the temper instance on Pipe if available.
  //
  if (options.bigpipe && options.bigpipe._temper) {
    options.temper = options.bigpipe._temper;
  }

  this.writable('_enabled', []);                        // Contains all enabled pagelets.
  this.writable('_disabled', []);                       // Contains all disable pagelets.
  this.writable('_active', null);                       // Are we active.
  this.writable('_req', options.req);                   // Incoming HTTP request.
  this.writable('_res', options.res);                   // Incoming HTTP response.
  this.writable('_params', options.params);             // Params extracted from the route.
  this.writable('_temper', options.temper);             // Attach the Temper instance.
  this.writable('_bigpipe', options.bigpipe);           // Actual pipe instance.
  this.writable('_bootstrap', options.bootstrap);       // Reference to bootstrap Pagelet.
  this.writable('_append', options.append || false);    // Append content client-side.

  this.writable('debug', debug('pagelet:'+ this.name)); // Namespaced debug method

  //
  // Allow overriding the reference to parent pagelet.
  // A reference to the parent is normally set on the
  // constructor prototype by optimize.
  //
  if (options.parent) this.writable('_parent', options.parent);
}
function Pagelet(options) {
  if (!this) return new Pagelet(options);

  this.fuse();
  options = options || {};

  //
  // Use the temper instance on Pipe if available.
  //
  if (options.bigpipe && options.bigpipe._temper) {
    options.temper = options.bigpipe._temper;
  }

  this.writable('_enabled', []);                        // Contains all enabled pagelets.
  this.writable('_disabled', []);                       // Contains all disable pagelets.
  this.writable('_active', null);                       // Are we active.
  this.writable('_req', options.req);                   // Incoming HTTP request.
  this.writable('_res', options.res);                   // Incoming HTTP response.
  this.writable('_params', options.params);             // Params extracted from the route.
  this.writable('_temper', options.temper);             // Attach the Temper instance.
  this.writable('_bigpipe', options.bigpipe);           // Actual pipe instance.
  this.writable('_bootstrap', options.bootstrap);       // Reference to bootstrap Pagelet.
  this.writable('_append', options.append || false);    // Append content client-side.

  this.writable('debug', debug('pagelet:'+ this.name)); // Namespaced debug method

  //
  // Allow overriding the reference to parent pagelet.
  // A reference to the parent is normally set on the
  // constructor prototype by optimize.
  //
  if (options.parent) this.writable('_parent', options.parent);
}
function Pagelet ( options ) { if ( ! this ) return new Pagelet ( options ) ; this . fuse ( ) ; options = options || { } ; // // Use the temper instance on Pipe if available. // if ( options . bigpipe && options . bigpipe . _temper ) { options . temper = options . bigpipe . _temper ; } this . writable ( '_enabled' , [ ] ) ; // Contains all enabled pagelets. this . writable ( '_disabled' , [ ] ) ; // Contains all disable pagelets. this . writable ( '_active' , null ) ; // Are we active. this . writable ( '_req' , options . req ) ; // Incoming HTTP request. this . writable ( '_res' , options . res ) ; // Incoming HTTP response. this . writable ( '_params' , options . params ) ; // Params extracted from the route. this . writable ( '_temper' , options . temper ) ; // Attach the Temper instance. this . writable ( '_bigpipe' , options . bigpipe ) ; // Actual pipe instance. this . writable ( '_bootstrap' , options . bootstrap ) ; // Reference to bootstrap Pagelet. this . writable ( '_append' , options . append || false ) ; // Append content client-side. this . writable ( 'debug' , debug ( 'pagelet:' + this . name ) ) ; // Namespaced debug method // // Allow overriding the reference to parent pagelet. // A reference to the parent is normally set on the // constructor prototype by optimize. // if ( options . parent ) this . writable ( '_parent' , options . parent ) ; }
A pagelet is the representation of an item, section, column or widget.
It's basically a small sandboxed application within your application.

@constructor
@param {Object} options Optional configuration.
@api public
A pagelet is the representation of an item section column or widget . It s basically a small sandboxed application within your application .