<html>
<body>
<template default>
<div>Hello world</div>
</template>
</body>
</html>
<html>
<body>
<template default>
<require namespace="test">/path/to/template.tpl</require>
<main>
class{
construct(){
this.ready(function(){
new test().appendTo(selector);
});
}
}
</main>
</template>
</body>
</html>
X.template("path/to/template.tpl").ready(function(template){
new template(options).appendTo(selector);
});
//https://raw.githubusercontent.com/blueimp/JavaScript-MD5/master/js/md5.min.js
md5(str);
//https://cdnjs.com/libraries/Base64
base64.encode(str);
base64.decode(encodedStr);
//Date Format 1.2.3
//(c) 2007-2009 Steven Levithan | stevenlevithan.com
new Date().format();
X.$.mediaQuery(start,end, function(inRange){ });
X.$.css(css,[start,end], namespace(optional));
X.$.query(selector).each(function(o){});
X.$.query.extend(name, function(){});
X.$.passcrypt.encrypt(str);
X.$.passcrypt.decrypt(encryptedString);