Also in JMVC, template was added first to the dom and then plugin method was called.
But in canjs - control(helper method similar to plugin) is getting called first and then template is getting added to DOM.
Was this intentional change?
$("#body-container").html(can.view("loginEJS"))
-- loginEJS - Header, Footer controllers are called first and then loginEJS is added #body-container
<%== can.view.render("headerContainerEJS", this) %>
<div><button id="login-button"> Login</button></div>
<%== can.view.render("footerContainerEJS", this) %>
-- headerContainerEJS
<div id="header-container" <%= control("Header", this)%>> </div>