Skip to content

Instantly share code, notes, and snippets.

@NHQ
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NHQ/10424073 to your computer and use it in GitHub Desktop.
Save NHQ/10424073 to your computer and use it in GitHub Desktop.
var fs = require('fs');
var trumpet = require('trumpet')();
var el = trumpet.select('meta#id')
el.setAttribute('content', id)
var stream = el.createWriteStream();
var html = fs.createReadStream(projectRoot+ '/www/index.html')
html.pipe(trumpet).pipe(process.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment