Download the PHP package jandc/inline-css-provider without Composer
On this page you can find all versions of the php package jandc/inline-css-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jandc/inline-css-provider
More information about jandc/inline-css-provider
Files in jandc/inline-css-provider
Package inline-css-provider
Short Description Silex provider which wraps the features of CssToInlineStyles
License ISC
Homepage https://github.com/JanDC/InlineCssProvider
Informations about the package inline-css-provider
InlineCssProvider
Note: due to the (personal) need to be bolt.cm compliant; silex2 is not supported!!!
InlineCssProvider is a silex compliant serviceprovider of the CssToInlineStyles class by Tijs Verkoyen (https://github.com/tijsverkoyen/CssToInlineStyles).
Additional feature(s) are:
- Direct rendering from twig.
Usage
- Base service: 'inlinecss.inlinecss'
-
Render service: 'inlinecss.render'
The base service is a simple wrapper, the renderservice resolves a twig template first (optional)
sample
$app->register(new InlineCssProvider(DIR.'/Resources/views/mails/css/main.css'));
$email = new \Swift_Message( "Import failed on when processing the importfile", $app['inlinecss.render]->renderAndInlineTemplate('mails/failed_import.twig') , 'text/html');