How to use the dustjs-linkedin.stream function in dustjs-linkedin

To help you get started, we’ve selected a few dustjs-linkedin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github linkedin / dustjs / examples / streaming-incremental / app.js View on Github external
app.get('/streaming', function(req, res) {
  dust.stream('hello', context).pipe(res)
    .on('end', function() {
      console.log('Done!');
    });
});
github linkedin / dustjs / examples / streaming / app.js View on Github external
app.get('/', function (req, res) {
  dust.stream("hello", {
    "async": request('http://www.dustjs.com/')
  }).pipe(res);
});
github DecentCMS / DecentCMS / modules / core / ui / services / dust-view-engine.js View on Github external
return function dustTemplate(shape, renderer, next) {
      var stream = dust.stream(templatePath, shape)
        .on('data', function(data) {
          renderer.write(data);
        })
        .on('end', next)
        .on('error', function(err) {throw err;});
      stream['decent-renderer'] = renderer;
    };
  }