ddfreyne changed the topic of #nanoc to: 3.7.0 (June 8th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
<mikey_p> having some weird issues with snapshots
<mikey_p> I'm trying to break the interior shared part of two different layouts into a partial
<mikey_p> so I'm trying to access @item.compiled_content(snapshot: :pre) to get just the content of the item without the layout
<mikey_p> but i'm still getting a recursion error
<mikey_p> and when I try snapshot: :raw I get an error that raw doesn't exist
louquillio_ has quit [Remote host closed the connection]
louquillio_ has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
prxq has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 264 seconds]
<ddfreyne> mikey_p: Including the content of an item on the item itself is not something you can do
<ddfreyne> mikey_p: CHeck out the example for "yielding inside a partial"
<ddfreyne> Does that solve your problem?
alerante has joined #nanoc
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #nanoc
alerante has quit [Ping timeout: 245 seconds]
cDlm has quit [Quit: Lingo - http://www.lingoirc.com]
cDlm has joined #nanoc
cDlm has quit [Client Quit]
cDlm has joined #nanoc
<guardian> you really can't call @item_compiled_content from within a layout, discovered that last time when working on my toc() helper
<guardian> at first I was trying to call toc(@item.compiled_content) from within layouts/default.haml
<guardian> and I ended up calling toc(yield)
cDlm has quit [Ping timeout: 252 seconds]
<ddfreyne> Yes, yield is almost always what you need instead of @item.compiled_content
cDlm has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
VitamineD has joined #nanoc
VitamineD_ has joined #nanoc
cDlm has quit [Ping timeout: 252 seconds]
VitamineD has quit [Ping timeout: 264 seconds]
VitamineD_ has quit [Remote host closed the connection]
VitamineD_ has joined #nanoc
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
louquillio_ has quit [Ping timeout: 244 seconds]
louquillio_ has joined #nanoc
VitamineD_ has quit [Ping timeout: 245 seconds]
cDlm has joined #nanoc
VitamineD has joined #nanoc
cDlm has quit [Ping timeout: 240 seconds]
<mikey_p> so wondering if I can yield inside a block that's passed to a partial, which in turn yields the content of the block...
canton7 has quit [*.net *.split]
canton7 has joined #nanoc
<francois2> http://jsldd.org/
<francois2> oups
<francois2> sorry
louquillio_ has quit [Remote host closed the connection]
louquillio_ has joined #nanoc
prxq has quit [Ping timeout: 240 seconds]