This is the main page for lib-templates.
docs test
The code for this library follows.
// Start of template class //
function Template(template) {
   this._template = template;
   return true;
}

Template.prototype._template;

Template.prototype.getTemplate = function() {
   return this._template;
}

Template.prototype.setTemplate = function(t) {
   this._template = t;
   return this;
}

Template.prototype.getTemplateText = function() {
   var template_item = appjet._native.codeSection(this._template)[0];
   var text = 'Template not found.';
   if (template_item && template_item.code) {
       text = template_item.code;
   }
   return text;
}

Template.prototype.toHTML = function() {
   return supplant(this,this.getTemplateText());
}
// End of template class //

Powered by AppJet
source
rendered in 0.005s