From 85215733d8159722c6f053571de7ff4fa17b08a4 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 4 Sep 2012 11:08:56 -0400 Subject: [PATCH] Import ICanHaz.js (yes, really) (imported from commit b864603cfac2b3626e01d8ba7c89d030f7c0fa43) --- zephyr/static/ich/ICanHaz.min.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 zephyr/static/ich/ICanHaz.min.js diff --git a/zephyr/static/ich/ICanHaz.min.js b/zephyr/static/ich/ICanHaz.min.js new file mode 100644 index 0000000000..e2bc6c50e7 --- /dev/null +++ b/zephyr/static/ich/ICanHaz.min.js @@ -0,0 +1,11 @@ +(function(){var q=function(){function c(a){return(""+a).replace(/&(?!\w+;)|[<>"']/g,function(a){return k[a]||a})}var e=Object.prototype.toString;Array.isArray=Array.isArray||function(a){return"[object Array]"==e.call(a)};var i=String.prototype.trim,g;if(i)g=function(a){return null==a?"":i.call(a)};else{var h,m;/\S/.test("\u00a0")?(h=/^[\s\xA0]+/,m=/[\s\xA0]+$/):(h=/^\s+/,m=/\s+$/);g=function(a){return null==a?"":a.toString().replace(h,"").replace(m,"")}}var k={"&":"&","<":"<",">":">",'"':""", +"'":"'"},o={},p=function(){};p.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented:{"IMPLICIT-ITERATOR":!0},context:{},render:function(a,d,b,f){if(!f)this.context=d,this.buffer=[];if(this.includes("",a)){var a=this.render_pragmas(a),j=this.render_section(a,d,b);!1===j&&(j=this.render_tags(a,d,b,f));if(f)return j;this.sendLines(j)}else{if(f)return a;this.send(a)}},send:function(a){""!==a&&this.buffer.push(a)},sendLines:function(a){if(a)for(var a=a.split("\n"),d=0;d|&|\\{|%)?([^#\\^]+?)\\1?"+b+"+","g")})},g=e(),h=function(a,f,h){switch(f){case "!":return""; +case "=":return j.set_delimiters(h),g=e(),"";case ">":return j.render_partial(h,d,b);case "{":case "&":return j.find(h,d);default:return c(j.find(h,d))}},a=a.split("\n"),i=0;i