lib/kissy/5.0.0-alpha.10/xtemplate.js
function XTemplate(tpl, config) {
        var self = this;
        config = self.config = config || {};
        config.loader = config.loader || loader;
        if (typeof tpl === 'string') {
            tpl = Compiler.compile(tpl, config && config.name);
        }
        XTemplate.superclass.constructor.call(self, tpl, config);
    }
function XTemplate(tpl, config) {
        var self = this;
        config = self.config = config || {};
        config.loader = config.loader || loader;
        if (typeof tpl === 'string') {
            tpl = Compiler.compile(tpl, config && config.name);
        }
        XTemplate.superclass.constructor.call(self, tpl, config);
    }
function XTemplate ( tpl , config ) { var self = this ; config = self . config = config || { } ; config . loader = config . loader || loader ; if ( typeof tpl === 'string' ) { tpl = Compiler . compile ( tpl , config && config . name ) ; } XTemplate . superclass . constructor . call ( self , tpl , config ) ; }
xtemplate engine for KISSY.

@example
KISSY.use('xtemplate',function(S, XTemplate){
document.writeln(new XTemplate('{{title}}').render({title:2}));
});

@class KISSY.XTemplate
@extends KISSY.XTemplate.Runtime
 
xtemplate engine for KISSY.

@example
KISSY.use('xtemplate',function(S, XTemplate){
document.writeln(new XTemplate('{{title}}').render({title:2}));
});

@class KISSY.XTemplate
@extends KISSY.XTemplate.Runtime
xtemplate engine for KISSY .