Δt Stream Adapter
This is a stream adapter for Δt.
Installation
$ npm install dt-stream
Usage
var Template = Template;var streamify = ; var template = ; templatestream; /* → stdout:<html> <body> hello world </body></html>*/
api
Returns a normal nodejs stream and emits the template as string data.
Δt is already packed with a simple render function to use this adapter to stream templates out through for example a http request.
Note
Unfortunatily this disables the ability to change the template after it was rendered, but asyncronious operations like filesystem io still works pretty well.