magento-hackathon / Responsive-Email-Templates-with-CSS-Inliner

Idea from Kalen Jordan. We can take http://zurb.com/ink/ as a base.
https://github.com/orgs/magento-hackathon
31 stars 10 forks source link

Directive in template text to include a template from file system #4

Closed kalenjordan closed 10 years ago

kalenjordan commented 10 years ago

I was thinking whether it would make sense to add support for some kind of directive from within the template text in the database to pull in content from the file system.

This might be a nice way to pull in common header/footer elements for transactional emails all into one place, and just leave the main content of the email editable in the database.

Maybe something like <include file='path/to/file.html' /> ?

@avstudnitz @nickw108

kalenjordan commented 10 years ago

Okay I went ahead and built this. It also comes in extremely handy for when you're building out a template locally, because you don't have to save the template content to the database every time you modify it. You can just reference it from a database template and then make changes to the file.