alerante has quit [Remote host closed the connection]
Zero_Dogg has joined #nanoc
<Zero_Dogg>
Is there any simple way to, in a layout, include a separate file depending on which page is being built? (section-specific menu)
jugglinmike has joined #nanoc
alerante has joined #nanoc
bghost has joined #nanoc
bghost has quit [Client Quit]
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 240 seconds]
jadd_ has joined #nanoc
alerante has quit [Remote host closed the connection]
louquillio has quit [Remote host closed the connection]
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
jadd_ has quit [Client Quit]
alerante has joined #nanoc
louquillio has joined #nanoc
alerante has quit [Remote host closed the connection]
louquillio has quit [Remote host closed the connection]
Zero_Dogg has quit [Read error: Connection reset by peer]
Zero_Dogg has joined #nanoc
Zero_Dogg has joined #nanoc
Zero_Dogg has quit [Changing host]
alerante has joined #nanoc
Zero_Dogg has quit [Read error: Connection reset by peer]
Zero_Dogg has joined #nanoc
Zero_Dogg has joined #nanoc
Zero_Dogg has quit [Changing host]
<bobthecow>
Zero_Dogg: yes.
<bobthecow>
it's probably better to switch it up in the rules, though.
<Zero_Dogg>
Right, so add a route per subsection would probably be easiest then?
<bobthecow>
yes, probably.
<bobthecow>
without a bit better idea what you're doing, it's hard for me to give specific answers :)
<bobthecow>
*generally*, rather than changing things in layouts based on the item, you should change things in rules.
<Zero_Dogg>
Aye, I am currently converting one of my older pages. It has one main top menu for the entire site, and a left submenu that changes based upon the subpart /foo has one /bar has one, /foo/bar uses /foo's menu
<bobthecow>
sometimes that means having a rule per item type, sometimes it means having a dynamic rule that uses different layouts depending on the item.
<bobthecow>
in that case, i'd do a rule for /foo/* and a rule for /bar/*
<bobthecow>
since that's the most straightforward.
<Zero_Dogg>
sounds like a plan, thanks
<bobthecow>
depending on your html output, you can probably use multiple layouts per rule to accomplish what you're looking for, too.
<Zero_Dogg>
does any docs cover this a bit more in depth than the intro docs?