How correctly to render the individual blocks if the page is generated by PHP?

0 like 0 dislike
5 views
Tell me how to solve this problem.
For example there is a page with a list of items and a small filter (price, manufacturer, etc.) Initially, the layout of the webpage is generated by PHP. Before, I just got a Ajax ready-made HTML and inserted it onto the page. But how to do it using Vue, it uses special attributes in the HTML. Option to render the list of items after the page is loaded an ajax request, it seems not very successful. Whether it is possible to combine the generation of pages using pykhy and further upgrade with Vue?
by | 5 views

1 Answer

0 like 0 dislike
Primary data can be directly transferred to the template, output json as a string.

But if there is some compelling reason, it is better to get the data one way.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,685 users