Django + Vue.js + SSR

I had an interesting problem ...

I have a form divided into steps - like a wizard. Each step (even the first) is downloaded from the server where Django is located. The master itself is a component of Vue. Everything works fine, but now I would like to add a component to the HTML that comes back from the server. The fact is that Wizard (Vue) can only display HTML downloaded from the server, it cannot parse embedded HTML for new components and create them. This is the moment when I remembered the server side visualization.

My question is where to start if I want to render a template that is rendered by Django render again through Vue.

Maybe there is another approach. All I want is to have another rich component in my inline form, and not just dumb HTML.

Thank.

+4
source share

Source: https://habr.com/ru/post/1682146/


All Articles