lookback / meteor-emails

Improved Meteor emails with templating, previews and automated CSS/SCSS inlining.

Home Page:https://atmospherejs.com/lookback/emails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Templates with exact contents are merged in bundles

imajus opened this issue · comments

I've faced a problem recently that during the development all templates I had worked fine but on production some of them were missing. The error I get in server logs were like Could not render email before sending: Could not find template: adminCommentsAdded [500] mailer.

To keep story short, the problem was I had few HTML files in /private folder which had exact contents and Meteor removes duplication when building the bundle. The original files still can be fetched using Assets methods but since not all actual files are there, the lookback:emails fails to fetch some of them.

The fast solution is to make changes in files in order to make their contents differ, for example to add <!-- Template XXX ---> comment on the top.

I guess it'll be nice to point that out in lookback:emails documentation.

See the thread here for details https://forums.meteor.com/t/some-private-subfolders-are-missing-in-the-bundle/28711