November 2016
— So if I want to make a new ControllerView paired to the LoginPage store, I do this
LoginPage
controllerViewFactory("LoginPage", [viewFactory(false, procedures.renderLoginPage)])
Message permanent page
The DOM will always contain a div called template-container, which, unless otherwise specified, is overwritten entirely by jQuery-Template
template-container
jQuery-Template
— Ah
— How about having a parent store
— To have the template-container state
— So if you want to show view A, or view B
— You tell parentStore that you want to change the view
parentStore
— And the parent store itself can diff only which view you want to render (A or B)
— And add the force render flag when necessary
force
— Hmm, interesting, I will think about this one
— And a copy of the DOM is inside that?
— Or rather that div?