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.
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.