S
S
Sergey Popov2015-12-08 17:33:22
JavaScript
Sergey Popov, 2015-12-08 17:33:22

How to build a page using Node.js?

I used to write in php, I decided to move to Node.js.
Essence of the question.
I have a page template. Accordingly, the page is divided into logical blocks (header, footer, news, right-column, etc.), each of which is in a separate file. Question: how to assemble a page from these blocks on the server using Node.js. Among other things, you need to fill in certain variables in the page in certain places of the page, depending on the values ​​returned by the server: for example, insert the name of the profile and the date of registration.
In php this was done with a simple include...
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kravchenko, 2015-12-08
@be_a_dancer

I recommend the express module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question