/* * jQote2 - client-side Javascript templating engine * Copyright (C) 2010, aefxx * http://aefxx.com/ * * Licensed under the DWTFYWT PUBLIC LICENSE v2 * Copyright (C) 2004, Sam Hocevar * * Date: Sun, May 5th, 2010 * Version: 0.9.2 */ (function($){var A='[object Array]',F='[object Function]',S='[object String]',n=0,c='%',ts=Object.prototype.toString;$.fn.extend({jqote:function(x,y){var x=ts.call(x)===A?x:[x],d='';this.each(function(i){var f=(l=$.jqotecache[this.jqote])?l:$.jqotec(this,y||c);for(var j=0;j=0)?e:(e=(t===S||e instanceof jQuery)?$(e)[0]:e).innerHTML;var a=h.replace(/\s*\s*|[\r\n\t]/g,'').split('<'+y).join(y+'>\x1b').split(y+'>');for(var i=0,q=a.length;i