PHP Classes

File: test/05-asynchronous/_tplcache/demo_tpl_html_tpl__global.js

Recommend this page to a friend!
  Classes of Nikos M.   Contemplate   test/05-asynchronous/_tplcache/demo_tpl_html_tpl__global.js   Download  
File: test/05-asynchronous/_tplcache/demo_tpl_html_tpl__global.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Contemplate
Template engine that provides programming controls
Author: By
Last change:
Date: 1 year ago
Size: 2,749 bytes
 

Contents

Class file image Download
!function(root, name, factory) { "use strict"; if (('undefined'!==typeof Components)&&('object'===typeof Components.classes)&&('object'===typeof Components.classesByID)&&Components.utils&&('function'===typeof Components.utils['import'])) /* XPCOM */ (root.$deps = root.$deps||{}) && (root.EXPORTED_SYMBOLS = [name]) && (root[name] = root.$deps[name] = factory.call(root)); else if (('object'===typeof module)&&module.exports) /* CommonJS */ (module.$deps = module.$deps||{}) && (module.exports = module.$deps[name] = factory.call(root)); else if (('function'===typeof define)&&define.amd&&('function'===typeof require)&&('function'===typeof require.specified)&&require.specified(name) /*&& !require.defined(name)*/) /* AMD */ define(name,['module'],function(module){factory.moduleUri = module.uri; return factory.call(root);}); else if (!(name in root)) /* Browser/WebWorker/.. */ (root[name] = factory.call(root)||1)&&('function'===typeof(define))&&define.amd&&define(function(){return root[name];} ); }('undefined' !== typeof self ? self : this,'Contemplate_demo_tpl_html__global',function() { "use strict"; return function(Contemplate) { /* Contemplate cached template 'demo.tpl.html', constructor */ function Contemplate_demo_tpl_html__global(id) { var self = this; Contemplate.Template.call(self, id); /* tpl-defined blocks render code starts here */ self._blocks = { /* tpl block render method for block 'section' */ 'section': function(Contemplate, data, self, __i__) { "use strict"; var __p__ = ''; __p__ += '' + "\n" + '' + (Contemplate.tpl("common/foo.tpl.html", {"foo":data.foo})) + '' + "\n" + ''; __p__ += '' + "\n" + '' + (Contemplate.tpl("common/bar.tpl.html", {"bar":data.bar})) + '' + "\n" + ''; return __p__; } }; /* tpl-defined blocks render code ends here */ /* extend tpl assign code starts here */ self._extendsTpl = 'layout/base.tpl.html'; self._usesTpl = ['common/foo.tpl.html','common/bar.tpl.html']; /* extend tpl assign code ends here */ } /* extends main Contemplate.Template class */ Contemplate_demo_tpl_html__global.prototype = Object.create(Contemplate.Template.prototype); /* render method */ Contemplate_demo_tpl_html__global.prototype.render = function(data, __i__) { "use strict"; var self = this, __p__ = '', __ctx = false; !__i__&&(__i__=self)&&(self._autonomus||(__ctx=Contemplate._set_ctx(self._ctx))); /* tpl main render code starts here */ __p__ = ''; /* tpl main render code ends here */ __ctx&&Contemplate._set_ctx(__ctx); return __p__; }; // export it return Contemplate_demo_tpl_html__global; }; });