I made a lot of server-side HTML programs and used several different template languages ββto create (X) HTML. This part is very clear to me.
But I wonder how people use this in client-side JavaScript programs? I mean, obviously, there may be template languages ββwritten for JavaScript that work inside the browser, but is that the way people usually do it? Or are people just manipulating the DOM directly? Or are there any interesting helper libraries that most people use?
As an example β let's say I want a JavaScript application that retrieves a list of contact cards from a remote server to return as a JSON object. Then I want to show these contact cards on the browser side using a specific predefined HTML markup into which I fill in the required fields. How is this usually done?
source share