ddfreyne changed the topic of #nanoc to: 3.6.4 (may 29th) | 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
Rym has joined #nanoc
Rym has quit [Read error: Connection reset by peer]
Rym has joined #nanoc
cDlm has quit [Quit: cDlm]
jugglinmike has quit [Quit: Leaving.]
louquillio has quit [Read error: Connection reset by peer]
louquillio has joined #nanoc
bghost has quit [Ping timeout: 245 seconds]
Rym_ has joined #nanoc
Rym has quit [Ping timeout: 276 seconds]
Rym_ is now known as Rym
Rym has quit [Ping timeout: 245 seconds]
cDlm has joined #nanoc
Rym has joined #nanoc
yogsototh has joined #nanoc
skroon has joined #nanoc
cDlm has quit [Ping timeout: 268 seconds]
Rym has quit [Quit: Rym]
jeremyjarvis has joined #nanoc
jachymko is now known as jachymko[afk]
jeremyjarvis has left #nanoc [#nanoc]
jachymko[afk] is now known as jachymko
summatusmentis has quit [Ping timeout: 248 seconds]
summatusmentis has joined #nanoc
jachymko is now known as jachymko[afk]
jachymko[afk] is now known as jachymko
jachymko is now known as jachymko[afk]
jachymko[afk] is now known as jachymko
jachymko is now known as jachymko[afk]
jachymko[afk] is now known as jachymko
jugglinmike has joined #nanoc
questiontime has joined #nanoc
<questiontime> Hey :)
<questiontime> I was wondering if it is possible to render a site which has relative items?
<questiontime> Like the item would be relative to each other, so that it would work no matter where it is deployed
<questiontime> Is this possible?
<questiontime> Thank you so much!
<questiontime> I was browsing the google group earlier, but I must have missed that!
<darix> and it was like the 5th result for me
<questiontime> Oh :o
<questiontime> Sorry then, I don't know how I could have missed it :(
jachymko is now known as jachymko[afk]
alzeih has quit [Remote host closed the connection]
jachymko[afk] is now known as jachymko
jachymko has quit [Quit: ZNC - http://znc.in]
jachymko has joined #nanoc
jadd_ has joined #nanoc
questiontime has quit [Quit: Page closed]
jadd_ has quit [Quit: Leaving...]
jadd_ has joined #nanoc
cDlm has joined #nanoc
jadd_ has quit [Ping timeout: 245 seconds]
jadd_ has joined #nanoc
jadd_ has quit [Ping timeout: 268 seconds]
jadd_ has joined #nanoc
bghost has joined #nanoc
skroon has quit [Ping timeout: 264 seconds]
cDlm has quit [Ping timeout: 264 seconds]
cDlm has joined #nanoc
cDlm has quit [Ping timeout: 264 seconds]
cDlm has joined #nanoc
skroon has joined #nanoc
cDlm has quit [Ping timeout: 256 seconds]
<Evolution> okay, so using the sitemap logic, is it possible to get a list of 'is_hidden' items for a robots.txt to disallow?
<Evolution> I can't seem to figure out how I'd accomplish this. sitemap lets me do -> <%= xml_sitemap :items => @items.reject{ |i| i[:is_hidden] || i.binary? } %>
<Evolution> so in theory I should be able to pull some of the same info for robots, right?
<darix> Evolution: just dont publish hidden items
<darix> ?
<Evolution> right. I guess I was hoping to make it a bit more dynamic.
<darix> you can actually get that list
<Evolution> how would I go about that?
<darix> @items.select {|e| e[:is_hidden] }
<darix> @items.select {|e| e.attributes[:is_hidden] }
<darix> thats it
skroon has quit [Quit: leaving]
<ddfreyne> no no, don't use e.attributes :)
<ddfreyne> Just use [] straight away, like in the first example
<ddfreyne> #attributes should never have been public (it bypasses the dependency tracking)
<darix> ddfreyne: i think in my case [:something] didnt work
<darix> but i can try again
<ddfreyne> darix: lies!
<darix> ddfreyne: after i had dinner i will try again
<darix> evil! on purpose breaking my rules file!:p
<ddfreyne> Well... you shouldn't have used it in the first place ;)
<ddfreyne> Maybe I'll just emit a warning.
<stbuehler> you shouldn't have allowed it in the first place :P
<ddfreyne> Myeah, and #attributes is even public. Ugh
<ddfreyne> I guess I'll just have to stick to emitting a warning
<Evolution> ddfreyne: could you elaborate a bit on what you're suggesting?
<Evolution> for 'just use [] straight away'
<Evolution> pretend I went to public school and have a terrible grasp of ruby.
<darix> Evolution: instead of e.attributes[:is_hidden]
<darix> Evolution: use e[:is_hidden]
<darix> and public school is no excuse not to learn
<Evolution> oh I'm fine with learning.
<Evolution> just not great at it for some things.
<jachymko> why does nanoc throw CannotCreateMultipleSnapshotsWithSameName when creating two snapshots with the same *contents*?
<jachymko> snapshot :asnapshot
<jachymko> e.g. snapshot :a; snapshot :b
julian37 has joined #nanoc
<julian37> hi! a few months ago I made a page with nanoc and got everything working... including cache busting, gzip compression, compass integration and all sorts of neat stuff
<julian37> now I want to add i18n and I'm really struggling getting the Rules right. anybody around who could give me a hand? basically, I'm trying to generate foo/en/index.html and foo/de/index.html out of the same source file foo.haml, each time with a different setting for I18n.locale
<julian37> a few months back I had a full mental model of how it all fits together, compile-vs-route wise
<julian37> but I think it has faded rather quickly
<julian37> I've added rules to the effect of 'route "/foo/#{locale}/", :rep => :"locale_#{locale}"' but nanoc compile doesn't seem to want to pick them up
<julian37> can somebody remind me how I'd go about the basic parts: ensuring *that* a file "foo/en/index.html" is generated. I'm pretty sure that once I'm at that point I'll figure out *how* it is going to get generated
<jachymko> so you want to have one source item? then simply make "route '*', :rep => 'locale_en'" and "compile '*', :rep => 'locale_en'" rules
<jachymko> and for every other lang
<julian37> right... sounds simple enough. sorry, it's been a while. thanks
<julian37> jachymko: if I want to combine the locale rep with a gzip rep, do I just use a Ruby array?
<jachymko> i don't know. perhaps there's a way of generating rules programmatically, but if there isn't, you will need to have both gzip and normal rep for every language
<jachymko> :rep => :lang_en …. :rep => :lang_en_gz
<julian37> ok
jadd_ has quit [Quit: Leaving...]