When using template engines like EJS or Pug with Express.js, the ______ method is used to render a view template.

  • render
  • send
  • view
  • generate
In Express.js, the render method is used to render a view template when using template engines like EJS or Pug. It takes the name of the view and an optional data object as parameters. The other options are not typically used for rendering view templates.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *