2017 © Pedro Peláez
 

library css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

image

nerds-and-company/css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

  • Monday, June 25, 2018
  • by nerds-and-company
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,821 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

Inline Css extension to convert css to inline styles

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Based on work by Roberto Trunfio on https://github.com/robertotru/ToInlineStyleEmailBundle, (*2)

Makes use of https://github.com/tijsverkoyen/CssToInlineStyles by Tijs Verkoyen, (*3)

Installation

This twig extension is installed through Composer. Run the following command from the root of your project:, (*4)

composer require nerds-and-company/css-to-inline-styles-twig-extension, (*5)

This will add nerds-and-company/css-to-inline-styles-twig-extension as a requirement to your project's composer.json file and install the source-code into the vendor/nerds-and-company/css-to-inline-styles-twig-extension directory, (*6)

Add the extension to the Twig_Environment:, (*7)

use NerdsAndCompany\CssToInlineStyles\Twig\InlineCssExtension;
use Twig\Environment;

$twig = new Environment(...);

$twig->addExtension(new InlineCssExtension());

Usage

{% inlinecss '/absolute/path/file.css' %}
   <tag>Html to be converted</tag>
{% endinlinecss %}

The Versions

25/06 2018

dev-master

9999999-dev https://github.com/nerds-and-company/css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

  Sources   Download

MIT

The Requires

 

The Development Requires

twig css inline

25/06 2018

1.1.1

1.1.1.0 https://github.com/nerds-and-company/css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

  Sources   Download

MIT

The Requires

 

The Development Requires

twig css inline

03/03 2017

1.1.0

1.1.0.0 https://github.com/nerds-and-company/css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

  Sources   Download

MIT

The Requires

 

The Development Requires

twig css inline

02/03 2017

1.0.0

1.0.0.0 https://github.com/nerds-and-company/css-to-inline-styles-twig-extension

A Twig extension to insert css as inline styles with a tag

  Sources   Download

MIT

The Requires

 

twig css inline