These are chat archives for canjs/canjs

29th
Mar 2019
Paul Moscuzza
@pmoscuzza-tc
Mar 29 19:47
Hello, I am trying to upgrade our codebase to canjs 3 from 2. I am running into a problem with rendering our old existing ejs templates. Most of our ejs templates use can.view.render to render pieces of the template. Since can.view.render is not supported in canjs 3 I created a can.view.render shiv that returns a deferred object containing the template we are trying to insert. However when I insert this imported template into the parent ejs template using ejs syntax (<%== can.view.render(template,data) %>), I just get [Object object] instead of the actual template. Is there any way I can overcome this problem?