Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 755 Bytes

File metadata and controls

31 lines (20 loc) · 755 Bytes

Template streaming libraries

A set of libraries to aid the building of asynchronous streaming template engines.

@http/token-stream

Provides generic utilities and types for the flattening of complex templates structures into a stream of tokens. Including strategies for deferral of slow asynchronous content.

@http/html-stream

Provides HTML specific tokens and utility functions, including a html tagged template literal function.

@http/jsx-stream

Provides a JSX runtime making use of @http/token-stream and @http/html-stream to support (primarily server-side) rendering of async components.

Examples

A Deno app serving up a bunch of examples.

To run the example app, clone this repo and run:

deno task start