Skip to content

Instantly share code, notes, and snippets.

@joachimhs
Created January 17, 2014 00:59
Show Gist options
  • Save joachimhs/8466570 to your computer and use it in GitHub Desktop.
Save joachimhs/8466570 to your computer and use it in GitHub Desktop.
Precompiled Ember templates
Ember.TEMPLATES["application"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', stack1, helper, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
data.buffer.push(escapeExpression((helper = helpers.render || (depth0 && depth0.render),options={hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data},helper ? helper.call(depth0, "header", options) : helperMissing.call(depth0, "render", "header", options))));
data.buffer.push("\n<div id=\"mainArea\">\n ");
stack1 = helpers._triageMustache.call(depth0, "outlet", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n</div>");
return buffer;
});
Ember.TEMPLATES["bucket"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', stack1, self=this;
function program1(depth0,data) {
var buffer = '', stack1;
data.buffer.push("\n <div class=\"list-group-item\">");
stack1 = helpers._triageMustache.call(depth0, "key.keyName", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("</div>\n ");
return buffer;
}
data.buffer.push("<div class=\"row\">\n <div class=\"col-md-6\">\n <h1>");
stack1 = helpers._triageMustache.call(depth0, "id", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("</h1>\n\n <div class=\"list-group\">\n ");
stack1 = helpers.each.call(depth0, "key", "in", "keys", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0,depth0,depth0],types:["ID","ID","ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n </div>\n </div>\n <div class=\"col-md-6\"></div>\n</div>");
return buffer;
});
Ember.TEMPLATES["buckets"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this;
function program1(depth0,data) {
var buffer = '', helper, options;
data.buffer.push("\n ");
data.buffer.push(escapeExpression((helper = helpers.input || (depth0 && depth0.input),options={hash:{
'type': ("text"),
'value': ("controller.newBucketName")
},hashTypes:{'type': "STRING",'value': "ID"},hashContexts:{'type': depth0,'value': depth0},contexts:[],types:[],data:data},helper ? helper.call(depth0, options) : helperMissing.call(depth0, "input", options))));
data.buffer.push("\n <button class=\"btn btn-default\" ");
data.buffer.push(escapeExpression(helpers.action.call(depth0, "saveBucket", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data})));
data.buffer.push(">Save</button>\n <button class=\"btn btn-default\" ");
data.buffer.push(escapeExpression(helpers.action.call(depth0, "cancelBucket", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data})));
data.buffer.push(">Cancel</button>\n ");
return buffer;
}
function program3(depth0,data) {
var buffer = '';
data.buffer.push("\n <button class=\"btn btn-default\" ");
data.buffer.push(escapeExpression(helpers.action.call(depth0, "addBucket", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["STRING"],data:data})));
data.buffer.push(">Add Bucket</button>\n ");
return buffer;
}
function program5(depth0,data) {
var buffer = '', stack1;
data.buffer.push("\n ");
stack1 = helpers['if'].call(depth0, "bucket.isLoaded", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(6, program6, data),contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
return buffer;
}
function program6(depth0,data) {
var buffer = '', stack1, helper, options;
data.buffer.push("\n ");
stack1 = (helper = helpers['link-to'] || (depth0 && depth0['link-to']),options={hash:{
'class': ("list-group-item")
},hashTypes:{'class': "STRING"},hashContexts:{'class': depth0},inverse:self.noop,fn:self.program(7, program7, data),contexts:[depth0,depth0],types:["STRING","ID"],data:data},helper ? helper.call(depth0, "bucket", "bucket", options) : helperMissing.call(depth0, "link-to", "bucket", "bucket", options));
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
return buffer;
}
function program7(depth0,data) {
var buffer = '', stack1;
data.buffer.push("\n ");
stack1 = helpers._triageMustache.call(depth0, "bucket.id", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n ");
return buffer;
}
data.buffer.push("<div class=\"row\">\n <div class=\"col-md-4\">\n <h1>Buckets</h1>\n\n ");
stack1 = helpers['if'].call(depth0, "showAddBucket", {hash:{},hashTypes:{},hashContexts:{},inverse:self.program(3, program3, data),fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n\n\n\n <div class=\"list-group\">\n ");
stack1 = helpers.each.call(depth0, "bucket", "in", "controller", {hash:{},hashTypes:{},hashContexts:{},inverse:self.noop,fn:self.program(5, program5, data),contexts:[depth0,depth0,depth0],types:["ID","ID","ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n </div>\n </div>\n\n <div class=\"col-md-8\">\n ");
stack1 = helpers._triageMustache.call(depth0, "outlet", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n </div>\n</div>\n");
return buffer;
});
Ember.TEMPLATES["components/loading-indicator"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
data.buffer.push("<div class=\"progress progress-striped\">\n <div class=\"progress-bar progress-bar-success\" role=\"progressbar\" aria-valuenow=\"40\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">\n <span class=\"sr-only\">text</span>\n </div>\n</div>");
});
Ember.TEMPLATES["header"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
data.buffer.push("<div id=\"headerArea\">\n <img src=\"/images/header_logo.png\" />\n</div>");
});
Ember.TEMPLATES["loading"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', stack1;
data.buffer.push("<div class=\"row\">\n <div class=\"col-md-4\">\n ");
stack1 = helpers._triageMustache.call(depth0, "loading-indicator", {hash:{},hashTypes:{},hashContexts:{},contexts:[depth0],types:["ID"],data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\n </div>\n</div>\n");
return buffer;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment