css-inliner-templates-jinja2

1.0.5 • Public • Published

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
});

Package Sidebar

Install

npm i css-inliner-templates-jinja2

Weekly Downloads

5

Version

1.0.5

License

GPL-3.0

Unpacked Size

40.6 kB

Total Files

10

Last publish

Collaborators

  • michaelvandeweerd