earl-express

v0.0.1
Earl Grey macros for express
earlgrey express earlgrey-macros

earl-express

Provides the application macro, which is used as follows:

require-macros:
   earl-express -> application
require:
   cookie-parser

application my-app:
   use: cookie-parser
   get "/hello":
      @res.send{"Hello!"}
   post "/something":
      ...

port = 3000
print 'Listening on port {port}!'
my-app.listen{port, .localhost}
npm i earl-express

Metadata

  • MIT
  • Whatever
  • Olivier Breuleux
  • released 10/2/2015

Downloads

Maintainers