define('startup/template', [], function () {
return '\n
hello foo list
\nHello ui.Button\uFF08\u4F60\u597D\u4E16\u754C\uFF09
\n\n\n\n MAIN_PAGE_er_hello_list\n
\n\n';
});
(function (root) {
function Engine() {
}
;
var etpl = new Engine();
etpl.Engine = Engine;
if (typeof exports == 'object' && typeof module == 'object') {
exports = module.exports = etpl;
} else if (typeof define == 'function' && define.amd) {
define('etpl/main', [], etpl);
} else {
root.etpl = etpl;
}
}(this));
define('etpl', ['etpl/main'], function (main) { return main; });
define('etpl/tpl', [
'require',
'exports',
'module',
'.'
], function (require, exports, module) {
var etpl = require('.');
return {
load: function (resourceId, req, load, config) {
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');
xhr.open('GET', req.toUrl(resourceId), true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 300) {
var source = xhr.responseText;
var moduleConfig = module.config();
if (typeof moduleConfig.autoCompile == 'undefined' || moduleConfig.autoCompile) {
etpl.compile(source);
}
load(source);
}
xhr.onreadystatechange = new Function();
xhr = null;
}
};
xhr.send(null);
}
};
});
define('319', [
'require',
'etpl/tpl!startup/template'
], function (require) {
require('etpl/tpl!startup/template');
require('etpl/tpl!startup/template');
});