app.esl 431 B

1234567891011
  1. (lambda (glagol-opts client-path common-path)
  2. ; create a server-side glagol instance to keep track of the client code
  3. ; make one for shared client/server code too, and overlay it on top
  4. (var client (./util/glagol client-path glagol-opts))
  5. (if common-path (client.bind (./util/glagol common-path glagol-opts)))
  6. (function handler (req res) ($.util.bundle client req res))
  7. (= handler.tracked client)
  8. (return handler))