Skip to content

Proof of concept for server- and cliet-side-rendering using the marko-path-router

License

Notifications You must be signed in to change notification settings

Websters-io/marko-router-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Proof of concept for server- and cliet-side-rendering using the marko-path-router

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published