I
I
Imbolc2012-07-31 08:18:09
JavaScript
Imbolc, 2012-07-31 08:18:09

How to combine js framework with server templating?

In connection with search engine optimization it is necessary to use server-side templates. There is a lot of client logic. I looked at popular frameworks, I didn’t see filling models from html anywhere. I met advice to additionally pass json for client models, I don’t like it. What do you say?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2012-07-31
Protko @Fesor

I will say that I did not understand any of the above.
What is your task, Tobish? to generate HTML on the server side for data that appeared in JS? or both data and templates on the server?

R
Renat Ibragimov, 2012-07-31
@MpaK999

Did you watch something in the spirit of Mustache?

M
Mikhail Krainov, 2012-07-31
@medved13

We did this: rendered HTML on the server from the model, shoved the necessary data that was not displayed on the layout into data- After that, when loading the DOM, it ran through the page and parsed the necessary data from the layout. They refused because it was too long.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question