Skip to content
Myr

page.html

This file

Path

examples/layout-control/views/page.html

8 lines · 348 bytes · HTML

Last changed by

another sidebarTj Holowaychukbefore adoptionc729d62

History of this file

Take it

better layout control exampleTj Holowaychukbefore adoption23dbe6a

lines 1–2why, one step back
1<h1>Page</h1>
2<% if (path == '/alternate') { %>

sidebar exampleTj Holowaychukbefore adoption1793b50

line 3why, one step back
3 <% contentFor('sidebar', partial('alternate-sidebar')) %>

better layout control exampleTj Holowaychukbefore adoption23dbe6a

line 4why, one step back
4 <p>Click <a href="/">here</a> to view the default layout.</p>

another sidebarTj Holowaychukbefore adoptionc729d62

line 5why, one step back
5 <p>Click <a href="/alternate2">here</a> to view another alternate page.</p>

better layout control exampleTj Holowaychukbefore adoption23dbe6a

lines 6–8why, one step back
6<% } else { %>
7 <p>Click <a href="/alternate">here</a> to view the alternate layout.</p>8<% } %>