Package Exports
- boost
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (boost) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
boost 
Given HTML, boost will inline your CSS properties into the style attribute.
How to use
var boost = require('boost');
boost("/path/to/file.html", function(err, html) {
console.log(html);
});/path/to/file.html:
<html>
<head>
<style>
p { color: red; }
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p>Test</p>
</body>
</html>style.css
p {
text-decoration: underline;
}Output:
<p style="color: red; text-decoration: underline;">Test</p>What is this useful for ?
- HTML emails. See juice
- Embedding HTML in 3rd-party websites.
Why not just use juice ?
Because then you cannot take advantage of template inheritance with your css.
Projects using boost
- none yet