Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created December 31, 2013 15:06
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 eduardolundgren/8198098 to your computer and use it in GitHub Desktop.
Save eduardolundgren/8198098 to your computer and use it in GitHub Desktop.
function writeTempFile(content, opt_callback) {
tmp.file({ postfix: '.html' }, function(err, tmpHtmlPath) {
if (!err) {
grunt.file.write(tmpHtmlPath, content);
}
opt_callback && opt_callback(err, tmpHtmlPath);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment