O'Reilly logo
  • Patrick S thinks this is interesting:

  • app.get(name): This is used to get environment variables that Express is using in its configuration.
  • app.engine(ext, callback): This is used to define a given template engine to render certain file types, for example, you can tell the EJS template engine to use HTML files as templates like this: app.engine('html', require('ejs').renderFile).
  • app.locals: This is used to send application-level variables to all rendered templates.
  • From

    Cover of MEAN Web Development

    Note

    application object - app.xxx