Skip to content

Instantly share code, notes, and snippets.

@jonnii
Last active August 29, 2015 14:11
Show Gist options
  • Save jonnii/20c5ca6b103dbc3e7474 to your computer and use it in GitHub Desktop.
Save jonnii/20c5ca6b103dbc3e7474 to your computer and use it in GitHub Desktop.
{{#each breadcrumb}}
<li {{bind-attr class="isActive:active"}}>
{{#if link}}
{{#link-to link}}{{text}}{{/link-to}}
{{else}}
{{text}}
{{/if}}
</li>
{{/each}}
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, hashContexts, hashTypes, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
hashContexts = {'items': depth0};
hashTypes = {'items': "ID"};
options = {hash:{
'items': ("breadcrumb")
},contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
data.buffer.push(escapeExpression(((stack1 = helpers['bread-crumb'] || depth0['bread-crumb']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bread-crumb", options))));
data.buffer.push("\r\n");
return buffer;
});
Ember.TEMPLATES["components/bread-crumb"] = 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, hashTypes, hashContexts, escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing;
function program1(depth0,data) {
var buffer = '', stack1, stack2, hashContexts, hashTypes, options;
data.buffer.push("\r\n <li ");
hashContexts = {'class': depth0};
hashTypes = {'class': "STRING"};
options = {hash:{
'class': ("isActive:active")
},contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
data.buffer.push(escapeExpression(((stack1 = helpers['bind-attr'] || depth0['bind-attr']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bind-attr", options))));
data.buffer.push(">\r\n ");
hashTypes = {};
hashContexts = {};
stack2 = helpers['if'].call(depth0, "link", {hash:{},inverse:self.program(5, program5, data),fn:self.program(2, program2, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data});
if(stack2 || stack2 === 0) { data.buffer.push(stack2); }
data.buffer.push("\r\n </li>\r\n");
return buffer;
}
function program2(depth0,data) {
var buffer = '', stack1, stack2, hashTypes, hashContexts, options;
data.buffer.push("\r\n ");
hashTypes = {};
hashContexts = {};
options = {hash:{},inverse:self.noop,fn:self.program(3, program3, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
stack2 = ((stack1 = helpers['link-to'] || depth0['link-to']),stack1 ? stack1.call(depth0, "link", options) : helperMissing.call(depth0, "link-to", "link", options));
if(stack2 || stack2 === 0) { data.buffer.push(stack2); }
data.buffer.push("\r\n ");
return buffer;
}
function program3(depth0,data) {
var hashTypes, hashContexts;
hashTypes = {};
hashContexts = {};
data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "text", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data})));
}
function program5(depth0,data) {
var buffer = '', hashTypes, hashContexts;
data.buffer.push("\r\n ");
hashTypes = {};
hashContexts = {};
data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "text", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data})));
data.buffer.push("\r\n ");
return buffer;
}
hashTypes = {};
hashContexts = {};
stack1 = helpers.each.call(depth0, "breadcrumb", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\r\n");
return buffer;
});
{{#each breadcrumb}}
<li {{bind-attr class="isActive:active"}}>
{{#if link}}{{#link-to link}}{{text}}{{/link-to}}{{else}}{{text}}{{/if}}
</li>
{{/each}}
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, hashContexts, hashTypes, options, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
hashContexts = {'items': depth0};
hashTypes = {'items': "ID"};
options = {hash:{
'items': ("breadcrumb")
},contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
data.buffer.push(escapeExpression(((stack1 = helpers['bread-crumb'] || depth0['bread-crumb']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bread-crumb", options))));
data.buffer.push("\r\n");
return buffer;
});
Ember.TEMPLATES["components/bread-crumb"] = 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, hashTypes, hashContexts, escapeExpression=this.escapeExpression, self=this, helperMissing=helpers.helperMissing;
function program1(depth0,data) {
var buffer = '', stack1, stack2, hashContexts, hashTypes, options;
data.buffer.push("\r\n <li ");
hashContexts = {'class': depth0};
hashTypes = {'class': "STRING"};
options = {hash:{
'class': ("isActive:active")
},contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
data.buffer.push(escapeExpression(((stack1 = helpers['bind-attr'] || depth0['bind-attr']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bind-attr", options))));
data.buffer.push(">\r\n ");
hashTypes = {};
hashContexts = {};
stack2 = helpers['if'].call(depth0, "link", {hash:{},inverse:self.program(3, program3, data),fn:self.program(2, program2, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data});
if(stack2 || stack2 === 0) { data.buffer.push(stack2); }
data.buffer.push("\r\n </li>\r\n");
return buffer;
}
function program2(depth0,data) {
var stack1, stack2, hashTypes, hashContexts, options;
hashTypes = {};
hashContexts = {};
options = {hash:{},inverse:self.noop,fn:self.program(3, program3, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data};
stack2 = ((stack1 = helpers['link-to'] || depth0['link-to']),stack1 ? stack1.call(depth0, "link", options) : helperMissing.call(depth0, "link-to", "link", options));
if(stack2 || stack2 === 0) { data.buffer.push(stack2); }
else { data.buffer.push(''); }
}
function program3(depth0,data) {
var hashTypes, hashContexts;
hashTypes = {};
hashContexts = {};
data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "text", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data})));
}
hashTypes = {};
hashContexts = {};
stack1 = helpers.each.call(depth0, "breadcrumb", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data});
if(stack1 || stack1 === 0) { data.buffer.push(stack1); }
data.buffer.push("\r\n");
return buffer;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment