static
Class jsbeans.mvc.controller
static
void
execute
(
model
,
view
,
callback
)
model against {@param} view and then invokes {@param} callback.view.load and doU.js Javascript Template Engine, version 0.1.2. There's no need to include in your libraries as it has been directly included in source (doU license permits it).
model
<Object | JSON>
data in Object or JSON format. May be local or remote, via AJAX request.
view
<String>
the name of used View remotely loaded in data-templatePath custom attribute of view script tag (<script type="text/javascript" src="jsbeans/mvc.js" data-templatePath="views"></script>) or inline into document if inline="true" has been set (<script type="text/javascript" src="jsbeans/mvc.js" inline="true"></script>).
callback
<Function>
a Function fired after View load and its match against Model. It takes the result of the matching as argument.callback(html) simply does a document.getElementById('anID').innerHTML = html;
void