lorenzofox3 / tpl-stream

html template library that supports streaming for javascript runtimes
MIT License
8 stars 0 forks source link

Pass streams as arguments to templates #1

Open markstiles123 opened 3 weeks ago

markstiles123 commented 3 weeks ago

Using response streams in templates enables complete streaming as compared to promises where you would have to fetch data and wait for it to parse to text, with streams you simply fetch partial html incrementally streamed, this is mostly useful at the serviceworker level, where the users network maybe slow and waiting for a fetch promise to resolve takes a lot of time

lorenzofox3 commented 3 weeks ago

Streams are already supported 🤔. Do you have a way to reproduce your issue ?