I have no idea how we connect an html theme/template with node.js back-end ?
Asked
Active
Viewed 1,232 times
-4
-
6When you have no idea, what you can do is, just search on Google. Then no idea becomes hundreds of ideas. – I am the Most Stupid Person Jun 04 '18 at 06:52
-
are you looking for something like https://stackoverflow.com/a/46782600/5621827 – jitender Jun 04 '18 at 06:54
-
https://www.w3schools.com/nodejs/ read this one you will have clear idea – Partha Jun 04 '18 at 07:02
2 Answers
2
You should probably take a look at something called PugJS (https://pugjs.org). It is a templating engine for NodeJS, formerly known as Jade. It uses a different markup to HTML, but it's rendered into minified HTML when requested. It works best in conjunction with Express (https://www.npmjs.com/package/express). It renders variables and info passed from your backend too. It supports if statements and for loops.

Pal Kerecsenyi
- 560
- 4
- 18
0
i can't explain this in one short message. But... i can support you. You tagged "angular" in your post, so... the easiest way is -> follow the steps in the "getting started" guides from a framework/tool. Here is the quick guide from angular. https://angular.io/guide/quickstart If you have after the guide any questions, your welcome.

Daniel Weiß
- 119
- 1
- 3