app.esl 382 B

123456789101112
  1. (lambda (glagol-opts app)
  2. (= app (to-glagol app))
  3. (.for-each (Array.prototype.slice.call arguments 2) overlay)
  4. (function to-glagol (x)
  5. (return (?: (=== "string" (typeof x)) (/util/glagol x glagol-opts) x)))
  6. (function overlay (x)
  7. (app.overlay (to-glagol x)))
  8. (function handler (req res)
  9. (/util/bundle app req res))
  10. (= handler.tracked app)
  11. (return handler))