code: function(name) {
        if (clients[name]) {
          throw new Error('Client name \'' + name + '\' has already been defined');
        }
        // if a function is used construct a bundler with it otherwise use default bundler
        var client = clients[name] = {
          name: name,
          paths: {},
          uniqueId: shortid.generate(),
          includes: {
            css: true,
            html: true,
            system: true,
            initCode: true
          }
        };
        client.id = client.uniqueId;
  
        ss.bundler.define(client,arguments);
  
        return client;
      }
docs: Define a new Single Page Client 
  @ngdoc service
  @name client.define
  @function
  @param {string} name Logical name of the client
  @param {object} paths Paths of css, code, tmpl, view
  @returns {{name: *} ClientDefinition} definition Client Definition
  @description
  Define a client view to serve.
  
  ss.http.route('/my-view', function(req,res)
  res.serveClient('my-view');
  });