A
A
axelvagabund2015-09-25 18:08:54
JavaScript
axelvagabund, 2015-09-25 18:08:54

What is the best chat template engine (node.js, express)?

I wrote a chat on socket.io, the server part on express, the chat is quite simple - 1 html, 1 css, 2 js (server and client file). There are no plans to upload chat to production, I just want to improve it, for the sake of practice, and it’s just fun, I always wanted to make a convenient chat. And yes, as you already understood, I am new to programming in general.
The time has come to split the code (because initially it was not enough, there was no point, now I'm confused in places). And make routing (literally three routes - '/' (main, where there will be a list of rooms), '/chat' (when the user is in the room, just the word chat, without any id), and something like '/about' (just for feedback, descriptions, etc.), even though it’s trite, I still somehow want it to be, but this is not the final version, of course, that EVERYTHING will be finalized / changed, etc.
More to the point, which template engine to choose for this chat? And do you need express to know about this template engine?
The templates themselves will be banal, just displaying messages / a list of rooms and that's it. And most importantly, how to connect it?
Please give a detailed answer if of course you can.
PS At this stage, the entire selection of selectors, etc. is done using jquery, and now it's quite annoying ... for clarity, all the code is on github.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
amatory10, 2015-09-25
@axelvagabund

If jade does not suit you, you can just as well take ejs the same jade with the usual html syntax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question