Rendering app.js on the back-end?

Such situation:

Controller
function somePage()
{
return $this->render('twig_tempalte');
}


twig_template






<some-package :some-data="{%" server_variable %}>
</some-component>

<script src="app.js">
</body>

</html></code></pre><br><br>
It turns out that the controller issue a template, which are components Vue.js. br><br><b>I would Like to know options on how to rid the client from rendering, as if it gave only Twig pattern, ready the rendered DOM on the server?</b></script>
June 8th 19 at 16:27
2 answers
June 8th 19 at 16:29
Solution
https://habrahabr.ru/post/334952/

well, or to remove vue and rewrite the entire front of the project
Overwrite with the vue for what? There is something better that I don't know?) - Gerda57 commented on June 8th 19 at 16:32
pure server side luke.
I'm rather old-fashioned and do not really understand the meaning of js template engines. - Derek_Bahringer commented on June 8th 19 at 16:35
vue - not a templating engine. The meaning of speed, convenience and opportunities offered by the SPA. - Gerda57 commented on June 8th 19 at 16:38
June 8th 19 at 16:31
Solution
not quite clear what it is, went to the docks, it's still not clear what it is and why. The framework is a wrapper for the framework?
https://ru.vuejs.org/v2/guide/ssr.html - Gerda57 commented on June 8th 19 at 16:34
Yes it is a tool to render vue on the server - Derek_Bahringer commented on June 8th 19 at 16:37
, ))) for server rendering VUE, which is positioned as the render on the client... hmm , Oh, these trends))) - Gerda57 commented on June 8th 19 at 16:40

Find more questions by tags Vue.jsServer-Side Rendering