shlogg · Early preview
Anthony Max @aanthonymax

Implementing Server-Side Rendering Without Reworking Architecture

Implement server-side rendering without reworking architecture using HMPL module. Compile strings into DOM nodes and render on server, then display in client. Suitable for any web project architecture.

Hello everyone! Perhaps you want to implement server-side rendering in your project, but do not want to rework its established architecture? Then this article is especially for you. Today, I will try to tell you how to do this.
It is worth noting that this method is suitable for any web project architecture, be it WordPress, Vue.js, or any other.

  
  
  Using HMPL

You can achieve server-side rendering by using this module. The connection is very simple and the usage is also:

<script src="https://unpkg.com/json5/dist/index.js"></script>
<script src="https://unpkg.com/hmpl-js/dist/hmpl.min.j...