Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dustjs-stweem

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dustjs-stweem

stream contents to dust

  • 0.0.1-0
  • alpha
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

#Stweem for dustjs ##this is a (proof of concept)

I would like to give Dust a writable stream interface

use case

imagine you have all your templates compile and the done function is always the same but the data updates (e.g. pagination, infinite scroll). It'll be nice to push new data in and have the templates drive instead of having to create a new stream every time we want to write new data.

// set up the template and the sink
dust.loadSource(dust.compile(tlSource, tlName));
var writeable = dust.stweem(tlName);

writable.on('data', function(html) {
  myApp.newMarkup(html);
});

// setup and wire up the source
var readable = getReadableStream();
readable.pipe(writable);

so what

check out the test/test.js it's workable

FAQs

Package last updated on 30 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc