Skip to content

Server Side Rendering #63

@smfoote

Description

@smfoote

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 innerHTML property, 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions