Message from JavaScript talks

November 2016

— Here is an example

— 

var viewDomain = controllerViewFactory("FileBrowser", [
viewFactory(
{
sort: ""
},
procedures.renderFileBrowser
),

viewFactory(
{
itemEntryContainer: {}
},
procedures.renderFileList
),

viewFactory(
{
navObjects: {}
},
procedures.renderNavBar
),

viewFactory(
{
folderList: {}
},
procedures.renderSidebar
)
]);

— Good look

— ViewFactory create new child elements?

— Each viewFactory is just a very basic object with some props (the data template, their view data, keys, the number of those keys, and finally the rendering procedure that manipulates the DOM) and a Promise generator (for view dependencies)

Message permanent page

— Holy shit

— This group is alive

— Not quite, but their render interfaces can eventually trigger a render procedure that does

— Pastebin is more appropriate for all that code... sorry

— Http://pastebin.com/C8SwFaDa

— Each render procedure is actually a promise, with a resolve() call after the important parts of the DOM have been loaded by it

Message permanent page

— This way, other views that are dependent on higher-up views can wait until those are loaded