-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Registered Partial cannot be found #1201
Comments
Your partials are loaded async and are unlikely to exist at the time that
|
Closing due to inactivity. |
Hello,
after using handlebars.js again for a while now(4.0.5) drives me in an error I cannot really debug:
I register partials, in the developer tools of chrome I also get from Handlebars.partials:
Handlebars.partials Object {hotel: "<tr> ↵ <td class="text-center"><i class="fa fa-… <td>Test User<br />Test User 2</td> ↵</tr>", flight: "<tr> ↵ <td class="text-center"><i class="fa fa-… <td>Test User<br />Test User 2</td> ↵</tr>"}
So well, the partial is registered. But I cannot use it, telling me: handlebars.js:518 Uncaught Error: The partial flight could not be found
How I register the partials(both template and partials are gotten from files)
`function buildContent(data) {
var customerData = data;
var templateScript = '';
$.ajax({
type: "GET",
url: "templates/customerData-en.html",
dataType: "html",
success: function (data) {
templateScript = data;
}`
works all fine without trying to call a partial in the template with {{> partialname, in that case flight}}
Is there anything changed in handlebars in Version 4 I do not find? Or is this a bug?
Or maybe am I just du dumb right now?
Thanks in advance
The text was updated successfully, but these errors were encountered: