You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two issues. One was easy, the compiled template file calls can.view.preload, but should call can.view.preloadStringRenderer.
The other I'm not clear on. In can.ejs from 2.1.1 there is the following lines:
viewData.templateType = "legacy";
if (viewData.tagName) {
viewCallbacks.tagHandler(el, viewData.tagName, viewData);
}
For certain templates, viewData was undefined. Wrapping these lines with a test for the presence of viewData seems to have fixed things. Tests show the templates that were causing the problem rendered correctly. Stopped trying to figure out why this was happening.
The text was updated successfully, but these errors were encountered:
Two issues. One was easy, the compiled template file calls can.view.preload, but should call can.view.preloadStringRenderer.
The other I'm not clear on. In can.ejs from 2.1.1 there is the following lines:
viewData.templateType = "legacy";
if (viewData.tagName) {
viewCallbacks.tagHandler(el, viewData.tagName, viewData);
}
For certain templates, viewData was undefined. Wrapping these lines with a test for the presence of viewData seems to have fixed things. Tests show the templates that were causing the problem rendered correctly. Stopped trying to figure out why this was happening.
The text was updated successfully, but these errors were encountered: