Skip to content

Instantly share code, notes, and snippets.

@cliftonc
Created April 8, 2014 14:31
Show Gist options
  • Save cliftonc/10133532 to your computer and use it in GitHub Desktop.
Save cliftonc/10133532 to your computer and use it in GitHub Desktop.
/**
* Include selector
*/
var request = require('request');
/**
* Handler to take any data-url marked elements and replace the innerHTML with the destination content
*/
module.exports = function dataurl(selectorConfig, options) {
return {
query: 'div.input',
func: function (node) {
var self = this,
nodeWS = node.createWriteStream({outer: true});
nodeWS.end("BLAH BLAH BLAH");
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment