How do I import headers?

Currently I have a little salad code and I want to make it more uniform.

I want to work with ES6 format and pure html… is that doable?

Basically, I want to create a header page, and then import that header into a new html page… is that possible? if so, I forgot how to do it… could somebody please be so awesome to show me / remind me how is that done?

I have been working on REACT and I forgot how to do things in html…

As of now I am working with EJS which requires “type”: “module” in the json file, and that is messing up all of my import formats from ES6… and its a pain to be renaming .cjs files and having different formats… so, if possible, I would like to work on HTML and ES6 format …

BTW… for this app I am using Express and dotenv… can I still use them in plain HTML? … I haven’t done much work and usually I work in REACT type of apps…

OK…

I think I better stay away from ES6 on this project… I don’t think .render works that great on html pages, so I go to ES6 then I have to change that code…

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.