Support for handlebars-server
with the packge handlebars-server templates can be used on the server, e.g. for email sending or other server responses.
It would be great if I could use mf in these templates on the server as well.
If I'm not mistaken, the following should work (but I've never used real Handlebars):
// Without locale it will use the native language. Params optional
OriginalHandlebars.registerHelper('mf', function(key, message, params, locale) {
return mf(key, params, message, locale);
});
There's no way to include this in mfPkg itself until 0.9.0 is out which fixes https://github.com/meteor/meteor/issues/1358.
@gadicc are we still interested in including this? weak dependencies are available :)
haha. yay!
Ok this has a working implementation, for cmather:handlebars-server. For future, we can see if we can avoid things like NAME=NAME by playing around with the OrignialHandlebars context functions. But there's a working example in the README and tests.
Can we close this issue?
Not yet, I definitely want to relook at this. It's milestoned for v2.1 though.