VulpesOS/gaia/apps/clock/js/tmpl.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

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;
});