You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'.
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?
The text was updated successfully, but these errors were encountered:
It uses the configured view engine ('view engine' option) to render templates from the directory specified in 'views' (process.cwd() + '/views' by default).
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'.
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?
The text was updated successfully, but these errors were encountered: