expressjs/expressjs.com

Res.Render documentation missing information.

Open

#1,457 创建于 2024年1月29日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)CSS (2,088 fork)batch import
docshelp wanted

仓库指标

Star
 (5,330 star)
PR 合并指标
 (平均合并 13天 7小时) (30 天内合并 43 个 PR)

描述

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?

贡献者指南