From 11ec8cfecb18058580c5ac3d95f2e46e9a0458cf Mon Sep 17 00:00:00 2001 From: popomore Date: Thu, 6 Jun 2013 15:32:13 +0800 Subject: [PATCH] rebuild --- dist/templatable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/templatable.js b/dist/templatable.js index a015864..9297679 100644 --- a/dist/templatable.js +++ b/dist/templatable.js @@ -1 +1 @@ -define("arale/templatable/0.9.0/templatable",["$","gallery/handlebars/1.0.2/handlebars"],function(e,t,l){function r(e){return s(e)?null:p(n(e))}function a(e,t){if(e){var l=e.find(t);if(0===l.length)throw Error("Invalid template selector: "+t);return i(l.html())}}function n(e){return e.replace(/({[^}]+}})/g,"").replace(/\s(src|href)\s*=\s*(['"])(.*?\{.+?)\2/g," data-templatable-$1=$2$3$2")}function i(e){return e.replace(/(?:<|<)!--({{[^}]+}})--(?:>|>)/g,"$1").replace(/data-templatable-/gi,"")}function s(e){return"function"==typeof e}var p=e("$"),m=e("gallery/handlebars/1.0.2/handlebars"),o={};l.exports={templateHelpers:null,templateObject:null,parseElementFromTemplate:function(){var e,t=this.get("template");/^#/.test(t)&&(e=document.getElementById(t.substring(1)))&&(t=e.innerHTML,this.set("template",t)),this.templateObject=r(t),this.element=p(this.compile())},compile:function(e,t){if(e||(e=this.get("template")),t||(t=this.get("model")),t.toJSON&&(t=t.toJSON()),s(e))return e(t,{helpers:this.templateHelpers});var l=this.templateHelpers;if(l)for(var r in l)l.hasOwnProperty(r)&&m.registerHelper(r,l[r]);var a=o[e];a||(a=o[e]=m.compile(e));var n=a(t);if(l)for(r in l)l.hasOwnProperty(r)&&delete m.helpers[r];return n},renderPartial:function(e){var t=a(this.templateObject,e);return t?this.$(e).html(this.compile(t)):this.element.html(this.compile()),this}};var c=m.compile;m.compile=function(e){return s(e)?e:c.call(m,e)}}); +define("arale/templatable/0.9.0/templatable",["$","gallery/handlebars/1.0.2/handlebars"],function(a,b,c){function d(a){return h(a)?null:i(f(a))}function e(a,b){if(a){var c=a.find(b);if(0===c.length)throw new Error("Invalid template selector: "+b);return g(c.html())}}function f(a){return a.replace(/({[^}]+}})/g,"").replace(/\s(src|href)\s*=\s*(['"])(.*?\{.+?)\2/g," data-templatable-$1=$2$3$2")}function g(a){return a.replace(/(?:<|<)!--({{[^}]+}})--(?:>|>)/g,"$1").replace(/data-templatable-/gi,"")}function h(a){return"function"==typeof a}var i=a("$"),j=a("gallery/handlebars/1.0.2/handlebars"),k={};c.exports={templateHelpers:null,templateObject:null,parseElementFromTemplate:function(){var a,b=this.get("template");/^#/.test(b)&&(a=document.getElementById(b.substring(1)))&&(b=a.innerHTML,this.set("template",b)),this.templateObject=d(b),this.element=i(this.compile())},compile:function(a,b){if(a||(a=this.get("template")),b||(b=this.get("model")),b.toJSON&&(b=b.toJSON()),h(a))return a(b,{helpers:this.templateHelpers});var c=this.templateHelpers;if(c)for(var d in c)c.hasOwnProperty(d)&&j.registerHelper(d,c[d]);var e=k[a];e||(e=k[a]=j.compile(a));var f=e(b);if(c)for(d in c)c.hasOwnProperty(d)&&delete j.helpers[d];return f},renderPartial:function(a){var b=e(this.templateObject,a);return b?this.$(a).html(this.compile(b)):this.element.html(this.compile()),this}};var l=j.compile;j.compile=function(a){return h(a)?a:l.call(j,a)}});