o2.widget = o2.widget || {}; o2.widget.JsonTemplate = new Class({ Implements: [Options, Events], options: {}, initialize: function(json, html, options){ this.setOptions(options); this.json = json; this.html = html; }, load: function(){ if (this.fireEvent("queryLoad")){ this.setContentText(); this.setContentFun(); //this.setContentBoolean(); //this.setContentNumber(); this.setContentEach(); this.fireEvent("postLoad"); } return this.html; }, //setContentBoolean: function(){ // var regexp = /(boolean\{).+?\}/g; // var r = this.html.match(regexp); // if(r){ // if (r.length){ // for (var i=0; i