alerante has quit [Read error: Connection reset by peer]
alerante_ has joined #nanoc
alerante_ has quit [Read error: Connection reset by peer]
alerante has joined #nanoc
alerante has quit [Read error: Connection reset by peer]
alerante_ has joined #nanoc
alerante_ has quit [Remote host closed the connection]
pavelkunc has quit [Quit: Leaving.]
pavelkunc has joined #nanoc
rift has joined #nanoc
<rift>
Hello, just wondering if anyone knows a way to enable a layout on all html pages within content, with the exception of one subfolder in content? For instance, I have a project that contains a lot of separate sites and all but one of those websites make use of one layout. The ones that doesn't uses a different layout.
<bobthecow>
rift: put a rule (or set of rules) for that folder above the other rules so they match first?
<rift>
Oh does ordering matter? I'll give it a shot.
<bobthecow>
yeah, items are compiled and routed using the first rule that matches.
<bobthecow>
so you put general rules last, and specific rules above them.
<rift>
Oh ok. Here's what I have so far.
<rift>
compile '*' do
<rift>
if item.binary?
<rift>
filter :erb
<rift>
end
<rift>
layout 'foo'
<rift>
end
<rift>
compile '/bar/*' do
<rift>
unless item.binary?
<rift>
end
<rift>
filter :erb
<rift>
layout 'bar'
<rift>
end
<bobthecow>
yeah. flip those.
<bobthecow>
more specific rules need to go first.
<rift>
oh ok.
<rift>
it didnt seem to work. it ends up compiling both the layouts for the one page. is there a way to restrict it to the bar layout?
<bobthecow>
what?
<bobthecow>
nanoc only matches one rule per item.
<bobthecow>
can you paste your exact rules file to a gist or something?
<bobthecow>
i don't see anything super problematic.
<bobthecow>
none of your css or js files inside your special subdirectories will be rendered properly.
<bobthecow>
those rules need to go first of everything
<bobthecow>
(*/css/*)
<rift>
ok
<rift>
Unfortunately I still have the "compile *" and the "compile '/wasc/*'" layout being rendered on one page. is there a way to exclude the wasc one from the * one?