%PDF- %PDF-
Direktori : C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/dot/lib/ |
Current File : C:/Windows/SystemApps/Microsoft.Windows.Cortana_cw5n1h2txyewy/dss_service/node_modules/dot/lib/doU.js |
/*! // doU.js // (c) 2011, Laura Doktorova // https://github.com/olado/doT // // doU is an extraction and slight modification of an excellent // templating function from jQote2.js (jQuery plugin) by aefxx // (http://aefxx.com/jquery-plugins/jqote2/). // // Modifications: // 1. nodejs support // 2. allow for custom template markers // 3. only allow direct invocation of the compiled function // // Licensed under the MIT license. */ (function(){var n={version:"0.1.2"};typeof module!="undefined"&&module.exports?module.exports=n:this.doU=n;n.templateSettings={begin:"{{",end:"}}",varname:"it"};n.template=function(t,i){i=i||n.templateSettings;for(var f="",s=i.begin,e=i.end,u=t.replace(/\s*<!\[CDATA\[\s*|\s*\]\]>\s*|[\r\n\t]|(\/\*[\s\S]*?\*\/)/g,"").split(s).join(e+"\x1b").split(e),r=0,o=u.length;r<o;r++)f+=u[r].charAt(0)!=="\x1b"?"out+='"+u[r].replace(/(\\|["'])/g,"\\$1")+"'":u[r].charAt(1)==="="?";out+=("+u[r].substr(2)+");":u[r].charAt(1)==="!"?";out+=("+u[r].substr(2)+").toString().replace(/&(?!\\w+;)/g, '&').split('<').join('<').split('>').join('>').split('\"').join('"').split(\"'\").join(''').split('/').join('/');":";"+u[r].substr(1);f=('var out="";'+f+";return out;").split("out+='';").join("").split('var out="";out+=').join("var out=");try{return new Function(i.varname,f)}catch(h){typeof console!="undefined"&&console.log("Could not create a template function: "+f);throw h;}}})()