Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tricknotes/8f0ee7309c479c2de92e to your computer and use it in GitHub Desktop.
Save tricknotes/8f0ee7309c479c2de92e to your computer and use it in GitHub Desktop.
Ember.TEMPLATES["application"] = Ember.HTMLBars.template((function() {
return {
isHTMLBars: true,
cachedFragment: null,
build: function build(dom) {
var el0 = dom.createDocumentFragment();
var el1 = dom.createElement("div");
dom.setAttribute(el1,"class","topbar");
var el2 = dom.createTextNode("\n ");
dom.appendChild(el1, el2);
var el2 = dom.createElement("div");
dom.setAttribute(el2,"class","container");
var el3 = dom.createTextNode("\n ");
dom.appendChild(el2, el3);
var el3 = dom.createComment("<a href=\"#\" class=\"topbar-logo\">O</a>");
dom.appendChild(el2, el3);
var el3 = dom.createTextNode("\n ");
dom.appendChild(el2, el3);
var el3 = dom.createElement("ul");
dom.setAttribute(el3,"class","topbar-nav left");
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
var el4 = dom.createElement("li");
dom.setAttribute(el4,"class","topbar-nav-item");
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
dom.appendChild(el3, el4);
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
var el4 = dom.createElement("li");
dom.setAttribute(el4,"class","topbar-nav-item");
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
dom.appendChild(el3, el4);
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
var el4 = dom.createElement("li");
dom.setAttribute(el4,"class","topbar-nav-item");
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
dom.appendChild(el3, el4);
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
var el4 = dom.createElement("li");
dom.setAttribute(el4,"class","topbar-nav-item");
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
dom.appendChild(el3, el4);
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
var el4 = dom.createElement("li");
dom.setAttribute(el4,"class","topbar-nav-item");
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
var el5 = dom.createTextNode("\n ");
dom.appendChild(el4, el5);
dom.appendChild(el3, el4);
var el4 = dom.createTextNode("\n ");
dom.appendChild(el3, el4);
dom.appendChild(el2, el3);
var el3 = dom.createTextNode("\n ");
dom.appendChild(el2, el3);
dom.appendChild(el1, el2);
var el2 = dom.createTextNode("\n");
dom.appendChild(el1, el2);
dom.appendChild(el0, el1);
var el1 = dom.createTextNode("\n\n");
dom.appendChild(el0, el1);
var el1 = dom.createTextNode("\n");
dom.appendChild(el0, el1);
return el0;
},
render: function render(context, env, contextualElement) {
var dom = env.dom;
var hooks = env.hooks, content = hooks.content;
dom.detectNamespace(contextualElement);
if (this.cachedFragment === null) {
this.cachedFragment = this.build(dom);
}
var fragment = dom.cloneNode(this.cachedFragment, true);
var element0 = fragment.childNodes[0].childNodes[1].childNodes[3];
var morph0 = dom.createMorphAt(element0.childNodes[1],0,1);
var morph1 = dom.createMorphAt(element0.childNodes[3],0,1);
var morph2 = dom.createMorphAt(element0.childNodes[5],0,1);
var morph3 = dom.createMorphAt(element0.childNodes[7],0,1);
var morph4 = dom.createMorphAt(element0.childNodes[9],0,1);
var morph5 = dom.createMorphAt(fragment,1,2,contextualElement);
content(morph0, "link-to", context, ["Dashboard", "dashboard"], {"class": "topbar-nav-link"}, {morph: morph0}, env);
content(morph1, "link-to", context, ["Orders", "orders"], {"class": "topbar-nav-link"}, {morph: morph1}, env);
content(morph2, "link-to", context, ["Customers", "customers"], {"class": "topbar-nav-link"}, {morph: morph2}, env);
content(morph3, "link-to", context, ["Products", "products"], {"class": "topbar-nav-link"}, {morph: morph3}, env);
content(morph4, "link-to", context, ["Content", "content"], {"class": "topbar-nav-link"}, {morph: morph4}, env);
content(morph5, "outlet", context, [], {}, {morph: morph5}, env);
return fragment;
}
};
}()));
<div class="topbar">
<div class="container">
<!--<a href="#" class="topbar-logo">O</a>-->
<ul class="topbar-nav left">
<li class="topbar-nav-item">
{{link-to 'Dashboard' 'dashboard' class="topbar-nav-link"}}
</li>
<li class="topbar-nav-item">
{{link-to 'Orders' 'orders' class="topbar-nav-link"}}
</li>
<li class="topbar-nav-item">
{{link-to 'Customers' 'customers' class="topbar-nav-link"}}
</li>
<li class="topbar-nav-item">
{{link-to 'Products' 'products' class="topbar-nav-link"}}
</li>
<li class="topbar-nav-item">
{{link-to 'Content' 'content' class="topbar-nav-link"}}
</li>
</ul>
</div>
</div>
{{outlet}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment