cmather / meteor-handlebars-server

Server side handlebars support for Meteor
81 stars 14 forks source link

Does this package cache the template? #33

Open sungwoncho opened 8 years ago

sungwoncho commented 8 years ago

I am using meteor-handlebars-server to render email template in server and send it to users. But I randomly get email templates that is outdated a long time ago. This issue persists for a while until it does not all of a sudden, then it comes back. This happens locally and also in production.

I am using this package like this (to be precise, Telescope is):

Handlebars.templates['myEmailTemplate']({//my variables//});

It is very strange. Any suggestions?

SachaG commented 8 years ago

I can confirm I've also been running into this issue locally.

SachaG commented 8 years ago

Actually it might be a false alert, at least in my specific case. I forgot I was replacing the template with another one, which is why my modifications on the original template weren't having any effect. @sungwoncho are you sure you're working on the active template?

sungwoncho commented 8 years ago

Sorry to hear that it's a false alert. I am working with an active template.

SachaG commented 8 years ago

Well, I did end up running into the issue when deploying, actually. But yeah it's hard to pin down what's going on exactly.

Riggsi commented 8 years ago

Any thoughts on what I can do Sacha?

Sent from Outlook

On Mon, Dec 14, 2015 at 4:32 AM -0800, "Sacha Greif" notifications@github.com wrote:

Well, I did end up running into the issue when deploying, actually. But yeah it's hard to pin down what's going on exactly.

— Reply to this email directly or view it on GitHub.

theosp commented 7 years ago

Use this excellent fork instead: https://atmospherejs.com/astrocoders/handlebars-server https://github.com/Astrocoders/meteor-handlebars-server