Skip to content
Discussion options

You must be logged in to vote

I found a way to achieve this using fetch() to simply fetch the template files in the src/ directory of the app, for example to fetch src/index.html, you can simply use fetch('index.html').

And with using a client side router like Navigo, you can turn a client side JS script into a router, which allows you to execute code when a user goes to a certain page/url in the app. The code you will execute is the template rendering itself

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by trymeouteh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant