Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
22 lines
441 B
JavaScript
Executable file
22 lines
441 B
JavaScript
Executable file
define([], function() {
|
|
'use strict';
|
|
|
|
var tmpl = {
|
|
pluginBuilder: './tmpl_builder',
|
|
|
|
toDom: function(text) {
|
|
var temp = document.createElement('div');
|
|
temp.innerHTML = text;
|
|
var node = temp.children[0];
|
|
return node;
|
|
},
|
|
|
|
load: function(id, require, onload, config) {
|
|
require(['text!' + id], function(text) {
|
|
onload(tmpl.toDom(text));
|
|
});
|
|
}
|
|
};
|
|
|
|
return tmpl;
|
|
});
|