E
E
Eugene2020-10-09 18:54:15
Node.js
Eugene, 2020-10-09 18:54:15

Is it possible to use nodejs server-side functions in html?

I will make a reservation right away - perhaps the question is stupid, because. just getting acquainted with Node.js Complexity
of the question - I don’t know either, so I set it to medium
Environment used - Repl.it sandbox, Express.js web server

, but everywhere there is a clear division into frontend and backend, with communication through the REST API. Through Express, you can give static pages (html), but is it possible to embed a block in the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-10-09
@RyoidenshiAokigahara

rest is used to drive only data over the network, and build html already in the browser.
but you can quite easily build html on the server and give the browser a ready-made code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question