 
 
 class JSPile extends BasePile
-  urlRoot: "/pile/js/"
   ext: "js"
 
   commentLine: (line) ->



class CSSPile extends BasePile
  urlRoot: "/pile/css/"
  ext: "css"

  commentLine: (line) ->

    sum.update @rawPile
    @pileHash = sum.digest('hex')


  pileUp: (cb) ->

    async.map @code, (codeOb, cb) =>
      codeOb.getCode (err, code) =>
        return cb? err if err #                                           TODO: minifying here does not work!?
        cb null, @commentLine("#{ codeOb.type }: #{ codeOb.getId() }") + "\n#{ code }"

    , (err, result) =>
