VulpesOS/gaia/apps/email/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

23 lines
518 B
JavaScript
Executable file

'use strict';
define(['l10n!'], function(mozL10n) {
var tmpl = {
pluginBuilder: './tmpl_builder',
toDom: function(text) {
var temp = document.createElement('div');
temp.innerHTML = text;
var node = temp.children[0];
mozL10n.translateFragment(node);
return node;
},
load: function(id, require, onload, config) {
require(['text!' + id], function(text) {
var node = tmpl.toDom(text);
onload(node);
});
}
};
return tmpl;
});