Like dustjs
https://github.com/linkedin/dustjs/blob/master/docs/api.md#the-streaming-interface
I don't have any plans to. Dust takes a very different approach architecturally and I'm not sure it would be a good fit for nunjucks. There hasn't been any evidence that it's a big improvement, also.
With streaming coming to the client & service worker, this may be worth revisiting?https://jakearchibald.com/2016/streams-ftw/#creating-one-stream-from-multiple-sources-to-supercharge-page-render-times
Also, dustjs was of real benefit when I built https://wiki-offline.jakearchibald.com/ (explaination https://www.youtube.com/watch?v=d5_6yHixpsQ&feature=youtu.be&t=4m22s), since some of my data was slower to arrive and I wanted a fast first render.
Dustjs handles promises & streams as template values, but unfortunately I have nothing nice to say about dustjs's syntax.
I'd like to see this revisited as well
Any update on this or is the maintainers stance still the same?
No updates, i think we should focus on compatibility with jinja rather than implementing new APIs for now.
Marko is another streaming templating engine, and its benchmarks are interesting.
Streaming is probably not that often required, but there are use cases where it can really improve performance. Like static site generators rendering hundreds/thousands of files, server-side rendering, and even client-side rendering like @jakearchibald demonstrated. I think it's worth looking into, at least eventually.
Most helpful comment
With streaming coming to the client & service worker, this may be worth revisiting?https://jakearchibald.com/2016/streams-ftw/#creating-one-stream-from-multiple-sources-to-supercharge-page-render-times
Also, dustjs was of real benefit when I built https://wiki-offline.jakearchibald.com/ (explaination https://www.youtube.com/watch?v=d5_6yHixpsQ&feature=youtu.be&t=4m22s), since some of my data was slower to arrive and I wanted a fast first render.
Dustjs handles promises & streams as template values, but unfortunately I have nothing nice to say about dustjs's syntax.