I
I
idclev312015-10-11 13:28:02
JavaScript
idclev31, 2015-10-11 13:28:02

What are the pros of using jade in single page application development?

What are the advantages of using jade compared to, for example, generating html with javascript?
After all, in jade, as I understand it, there is no dynamic rendering, and accordingly, all changes on the client side are made using js anyway. At the moment, I use jade to generate different page states depending on the route, but I can do this with js. So what are the advantages and convenience?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-10-11
@idclev31

The advantages are the same as any other template engines. Separation of markup from code. Developer restrictions, so that he would at least think before pushing the logic into the template.
in the case of jade, we still get a fairly minimalistic markup compared to html. Well, yes, usually it is compiled into js and then used on the client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question