lucacasonato / dext.ts

The Preact Framework for Deno
https://deno.land/x/dext
MIT License
241 stars 8 forks source link

Add support for custom HTML document wrapper #4

Closed lucacasonato closed 4 years ago

lucacasonato commented 4 years ago

Currently the HTML document is hard coded. It should be possible to specify a pages/_document.tsx file that defines the HTML document in JSX. This file is prerendered before all other files. It is not included in the client bundle.

This should be mostly based of https://nextjs.org/docs/advanced-features/custom-document. It should allow functional component style though, not just class based syntax.