-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Tornado templates should be able to render on the server with Node. There are Node implementations of the DOM API (e.g. simple-dom) that should get us most of the way there, but there are still a few things lacking.
- tornado#render may need to return a promise that resolves when all internal promises have resolved, because values that resolve after the server responds would otherwise not be included in the HTML payload.
- simple-dom does not support the
innerHTMLproperty, which is used within the Tornado runtime, and seems like the easiest way to turn the DOM returned by Tornado into a string. - because Tornado creates DOM instead of strings, it seems like streaming (and thus early flush) is not possible. This needs further investigation.
Reactions are currently unavailable