Giter VIP home page Giter VIP logo

inky's People

Contributors

josefsabl avatar thampe avatar uzegonemad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

inky's Issues

Inlining

Thanks for making this, it's looking very useful. Do you have any plans to integrate Inky's inliner functionality? Or have I missed that somewhere?

valign attribute not parsed

when using , the attribute 'valign' is not reported on dist, although it's working on the last release of inky.

That valign property is essential for outlokk clients, for instance.

1.3.6.0 upgrade breaking nested spacers

Hiya, I'm encountering an issue after upgrading from 1.3.5.0 to 1.3.6.0.

Given the following partial markup, the spacer element on the inside of the table does not get parsed, while the ones on the outside do:

<container>
    <wrapper>
        <row>
            <columns small="12" large="12">

                <spacer size="40"></spacer>

                <table>
                    <tr>
                        <th>
                            <spacer size="220"></spacer>
                        </th>
                    </tr>
                </table>

                <spacer size="40"></spacer>

            </columns>
        </row>        
    </wrapper>
</container>

Allow for namespaced inky tags

Would be great to allow XML-namespaced inky tags for integration with templating engines and CMS. Some templating engines like TYPO3.Fluid or phptal are XML-based. Using namespaces would ease both validation and separation, e.g. <inky:container> etc.
Iโ€˜m aware of reaching beyond Foundation for Emails compatibility and that this can be resolved with either subclassing or using component factories as well. So this is more like a poll if there are people around interested in improved XML support.

Compilation of templates is VERY slow

Today I found out that the compilation is qutie slow for rather large email. I have an email layout with some Inky template elements and inside the content block of layout is one large table (1000 rows) that itself does not contain any Inky special elements. The comilation of one such e-mail takes 150 seconds. It means that it is 0.15 s per one row in the e-mail, that is VERY slow.

Line breaks removed from pre tags.

Tags such as pre that requires white space and line breaks to maintain formatting are compressed during template compilation, rendering data in pre tags unreadable.

This appears to be related to $dom->setOptions in Inky.php (line 187), as the Dom object does not preserve line breaks by default. Updating the call to include 'preserveLineBreaks' => true, in the options fixes this, but I'm not sure if setting this globally is the best approach.

I'm happy to open a pull request, I just wanted to see if there was feedback on if this is the route to go.

Parsing issue with malformed HTML

The library truncate the HTML when it is malformed:

$inky = new \Hampe\Inky\Inky();
echo $inky->releaseTheKraken('<p>Malformed HTML</a></p><p>Next paragraph</p>');

This exemple will return:

<p>Malformed HTML</p>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.