Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 856 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 856 Bytes

Server-side-rendering with marko-path-router

Simple demo to provide Server-side-rendering in combination with marko-path-router.

Start

npm install
npm start

How it works

  1. Lasso is used to render a template file on the server with express.

  2. An include-tag is used to add a specific component dynamically according to the requested path on the server. (see template.marko).

  3. in the onMount function (which gets executed on the client) the router is initialized + rendered asynchronously and then replaces the content in the dom accordingly. (see template.marko).

References

For more information click here.