Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom render function support #19

Closed
lucacasonato opened this issue Jun 2, 2021 · 0 comments · Fixed by #30
Closed

Add custom render function support #19

lucacasonato opened this issue Jun 2, 2021 · 0 comments · Fixed by #30

Comments

@lucacasonato
Copy link
Member

The start function that starts the server in main.ts should take an optional render function. This function can be used to create the JIT server side rendered static HTML page for a specific route. It gets a page component, some items to put into the <head>, and some items to put at the end of the <body> in its parameters, and returns a string.

There is a default implementation of this render function. It can be used for advanced use-cases like #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant