css-inliner-templates-jinja2
v1.0.5
Published
Jinja2 template support for CSS Inliner.
Downloads
24
Maintainers
Readme
CSS Inliner Templates Jinja2
Jinja2 template support for CSS Inliner.
Only implements a very basic matching for Jinja2 template literals, which might fail in some specific circumstances. It is, however, very lightweight. If you do encounter problems with your template, please submit an issue with the template that fails to be inlined so that this package can be improved accordingly.
Install
npm install css-inliner-templates-jinja2
Example
const CSSInliner = require("css-inliner");
const CSSInlinerTemplateJinja2 = require("css-inliner-templates-jinja2");
const inliner = new CSSInliner({
template: CSSInlinerTemplateJinja2
});