jaydata
Version:
Cross-platform HTML5 data-management, JavaScript Language Query (JSLQ) support for OData, SQLite, WebSQL, IndexedDB, YQL and Facebook (packaged for Node.JS)
16 lines (15 loc) • 3.1 kB
JavaScript
// JayData 1.5.10
// Dual licensed under MIT and GPL v2
// Copyright JayStack Technologies (http://jaydata.org/licensing)
//
// JayData is a standards-based, cross-platform Javascript library and a set of
// practices to access and manipulate data from various online and offline sources.
//
// Credits:
// Hajnalka Battancs, Dániel József, János Roden, László Horváth, Péter Nochta
// Péter Zentai, Róbert Bónay, Szabolcs Czinege, Viktor Borza, Viktor Lázár,
// Zoltán Gyebrovszki, Gábor Dolla
//
// More info: http://jaydata.org
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("jaydata/modules/template",["jaydata/core"],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.$data=e()}}(function(){return function e(t,n,o){function r(f,i){if(!n[f]){if(!t[f]){var a="function"==typeof require&&require;if(!i&&a)return a(f,!0);if(u)return u(f,!0);var p=new Error("Cannot find module '"+f+"'");throw p.code="MODULE_NOT_FOUND",p}var l=n[f]={exports:{}};t[f][0].call(l.exports,function(e){var n=t[f][1][e];return r(n?n:e)},l,l.exports,e,t,n,o)}return n[f].exports}for(var u="function"==typeof require&&require,f=0;f<o.length;f++)r(o[f]);return r}({1:[function(e,t,n){(function(o){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(n,"__esModule",{value:!0});var u=e("jaydata/core"),f=r(u),i="undefined"!=typeof window?window.jQuery:"undefined"!=typeof o?o.jQuery:null,a=r(i);!function(e,t){var n=function(e,t,n){var o="\\${",r="}";return this.toArray(function(u){var f=document.getElementById(e),i=document.getElementById(t);if(f&&i){i.innerHTML="";for(var a=new RegExp(o+"(.*?)"+r,"g"),p=f.innerHTML.match(a),l=0;l<u.length;l++){for(var d=f.innerHTML,y=0;y<p.length;y++){for(var c=p[y].substring(o.replace("\\","").length,p[y].length-r.replace("\\","").length),s=u[l],m=c.split("."),g=0;g<m.length;g++)s&&(s=s[m[g]]);d=d.replace(p[y],s)}i.innerHTML+=d}"function"==typeof n&&n(u)}})},o=function(e,n,o,r){return this.toArray(function(u){if(t&&t.tmpl){var f=t(e);f.length?f.tmpl(u,o).appendTo(t(n)):t.tmpl(e,u,o).appendTo(t(n))}"function"==typeof r&&r(u)})};e.Queryable.prototype.toTemplate=e.Queryable.prototype.toTemplate||n,e.EntitySet.prototype.toTemplate=e.EntitySet.prototype.toTemplate||n,"undefined"!=typeof t&&"undefined"!=typeof t.tmpl?(e.Queryable.prototype.tojQueryTemplate=e.Queryable.prototype.tojQueryTemplate||o,e.EntitySet.prototype.tojQueryTemplate=e.EntitySet.prototype.tojQueryTemplate||o):e.Queryable.prototype.tojQueryTemplate=e.EntitySet.prototype.tojQueryTemplate=function(){u.Guard.raise(new u.Exception("jQuery and jQuery tmpl plugin is required","Not Found!"))}}(f["default"],a["default"]),n["default"]=f["default"],t.exports=n["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"jaydata/core":"jaydata/core"}]},{},[1])(1)});
//# sourceMappingURL=template.min.js.map