   Type: JSPile
   contentType: "application/javascript"
 
+
   addOb: defNs (ns, ob) ->
     pile = @getPile ns
     pile.addOb ob

  pilers =
    raw: (ob, cb) -> cb null, ob.raw
    object: (ob, cb) ->
      code = ""
      for k, v of ob.object
        code += "window['#{ k }'] = #{ OB.stringify v };\n"
      cb null, code
    exec: (ob, cb) ->
      cb null, executableFrom ob.object
    file: (ob, cb) ->

  constructor: (@settings) ->
    @production = @settings.production
    @settings.urlRoot ?= "/pile/"

    @piles =
      global: new @Type "global", @production, @settings.urlRoot
