-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad resolve with template async parameter #470
Comments
Could you please provide a reproduction? Ideally a GitHub repo we could clone and run to see it. |
I did a quick and dirty new project to demonstrate the issue. |
Hi, where is the template "hello" ? |
My bad, to quick to make a repo example. |
So, I checked it out and the issue is rather tricky. The point is that this... <img class={{x}}> ...translates to... Template("Template.test", (function() {
var view = this;
return HTML.IMG({
class: function() {
return Spacebars.mustache(view.lookup("x"));
}
});
})); ...which is fine. But if we'd add some text around, like this... <img class="1 {{#if x}}2{{else}}3{{/if}} 4"> ...then it looks like this... Template("Template.test", (function() {
var view = this;
return HTML.IMG({
class: function() {
return [ "1 ", Blaze.If(function() {
return Spacebars.call(view.lookup("x"));
}, function() {
return "2";
}, function() {
return "3";
}), " 4" ];
}
});
})); ...which is a problem. The thing is that a new instance of I'll think about it and I'd appreciate any ideas! |
Blaze:
3.0.0
(2.6.1
worked fine but no promise at that time)Meteor:
3.0.2
Since my migration of my application to Meteor 3.0, I figure out that some variable of template seems not to be resolve the way it used to be.
Here is an example :
If I use within blaze :
with :
The template will always display
Dooh
instead ofYeah
.I expected once the resolve had been done, to pass the new value to the template so it can revaluate it and change the display accordingly.
Did I miss something there?
PS: repo to reproduce the issue.
The text was updated successfully, but these errors were encountered: