17 lines
313 B
JavaScript
17 lines
313 B
JavaScript
define('text', [], {
|
|
load: function () {
|
|
throw new Error('not implemented');
|
|
}
|
|
});
|
|
|
|
define('text!template.html', [], function () {
|
|
return 'main template';
|
|
});
|
|
|
|
define('main', ['text!template.html'], function(template) {
|
|
return {
|
|
name: 'main',
|
|
template: template
|
|
};
|
|
});
|