2017 © Pedro Peláez
 

library pinky

A Foundation for Emails (Inky) template transpiler

image

lorenzo/pinky

A Foundation for Emails (Inky) template transpiler

  • Friday, May 18, 2018
  • by lorenzo
  • Repository
  • 2 Watchers
  • 14 Stars
  • 336 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 3 Versions
  • 250 % Grown

The README.md

Pinky

A PHP Transpiler for (Inky), the templating language made for the Foundation for Email framework., (*1)

Installation

You can install this bundle using composer, (*2)

composer require lorenzo/pinky

Usage and Examples

Basic Usage

<?php
use Pinky;

$transpiled = Pinky\transformFile('path/to/file.html');

// $transpiled is an instance of DOMDocument
echo $transpiled->saveHTML();

You can transpile strings directly:, (*3)

<?php
use Pinky;

$transpiled = Pinky\transformString('<row>Contents</row>');
echo $transpiled->saveHTML();

And you can also transpile many files or strings in batch:, (*4)

<?php
use Pinky;

$files = [$path1, $path2, $path3];

$transpiled = Pinky\transformManyFiles($files);
foreach ($transpiled as $result) {
    echo $result->saveHTML();
}

License

See the LICENSE file for license info (it's the MIT license)., (*5)

The Versions

18/05 2018

dev-master

9999999-dev

A Foundation for Emails (Inky) template transpiler

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

email template foundation zurb inky

02/02 2017

1.0.1

1.0.1.0

A Foundation for Emails (Inky) template transpiler

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

email template foundation zurb inky

26/01 2017

1.0

1.0.0.0

A Foundation for Emails (Inky) template transpiler

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

email template foundation zurb inky