expressjs/expressjs.com

Res.Render documentation missing information.

Open

#1,457 opened on Jan 29, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)CSS (2,088 forks)batch import
docshelp wanted

Repository metrics

Stars
 (5,330 stars)
PR merge metrics
 (Avg merge 11d) (31 merged PRs in 30d)

Description

I cannot find any information anywhere in the documentation or of other sources where res.render pulls the HTML from that we are referencing in the documentation.

For example, I want to render some HTML (preferably in a file somewhere) and inject some variables into it. In the photo below at docs we are stating 'email'.

image

  • Does this mean email.html in the same directory as this .js script?
  • Does this mean we previously read the file email.html and read it into memory somewhere?

I have been trying to understand this process of express and utilize this function but everyone just glances over this part in particular.

So. where is the html for email?

Contributor guide