foundation / inky

Convert a simple HTML syntax into tables compatible with Foundation for Emails.
http://foundation.zurb.com/emails
674 stars 108 forks source link

Allow XML namespace prefixes for inky tags #91

Open cumuru opened 6 years ago

cumuru commented 6 years ago

I‘d really like to be able to prefix all inky tags with an XML namespace (like <inky:columns>). The current workflow of many of our email project is 1. create template with Foundation for Emails and 2. integrate it in a CMS. Along this path a XML prefix with corresponding XSD would ease hacking (IDE autocompletion) and validation (be it IDE or CI or the like). What I tried is overriding component registry with namespaced tags (like inky\\:columns) but it would exceed maximum call stack - no clue why. I‘m no pro in cheerio nor node in general, so any help is appreciated. btw: Thanks for Inky and for sharing it!

cumuru commented 6 years ago

The PHP based part is ready, just in case I didn‘t make clear what‘s my goal: https://github.com/cumuru/inky/tree/feature/xmlNamespace#xml-namespace