node-assets-embed

Embed HTML assets (js/css) in the document

Embed HTML assets (js/css) in the document

Install the module with: npm install node-assets-embed

var embed = require('node-assets-embed');
embed.embedFile('path/to/file.html', function (errhtml) {});

Also exist in sync:

var embed = require('node-assets-embed');
embed.embedFileSync('path/to/file.html');

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Copyright (c) 2013 Loïc Mahieu. Licensed under the MIT license.