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
bghost has quit [Quit: leaving]
jugglinmike has quit [Quit: Leaving.]
alerante has joined #nanoc
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
alerante has quit [Remote host closed the connection]
yogsototh has joined #nanoc
yogsototh1 has joined #nanoc
yogsototh has quit [Ping timeout: 246 seconds]
superkulak has joined #nanoc
superkulak has quit [Ping timeout: 248 seconds]
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
<ddfreyne> bobthecow: 337
<ddfreyne> Take a look
<ddfreyne> I haven't been able to find a good test for this...
alerante has joined #nanoc
<Evolution> has anyone seen an issue with a haml layout where the <head> bits aren't rendered?
<ddfreyne> Evolution: That is weird. You mean only the <body> is outputted?
<Evolution> yep.
<Evolution> haml-lint claims the haml is good
<ddfreyne> Evolution: any other filters that run after haml?
<Evolution> :add_ids_to_headers
<Evolution> that's the only other one.
<ddfreyne> That could be the one that removes it
<Evolution> I'll comment out and check
<Evolution> hah. yep
<Evolution> that did it
<Evolution> ddfreyne: for all the questions you've answered for me in the last couple weeks.. I owe you a beer or several.
<ddfreyne> Evolution: I wouldn't mind that :)
<ddfreyne> Evolution: Show me your add_ids_to_headers filter
<Evolution> ddfreyne: you going to be at either linuxcon-eu or fosdem?
<Evolution> I'll happily buy the beer (and then write it off as a work expense)
<ddfreyne> Not linuxcon, fosdem perhaps!
<ddfreyne> Evolution: It will need to be a good Belgian beer though ;)
<Evolution> ddfreyne: pretty sure that's a requirement for everything at fosdem
<ddfreyne> Evolution: Replace the Nokogiri::HTML.fragment with Nokogiri::HTML.parse... that should fix it
<ddfreyne> .parse is for full HTML documents, .fragment for pieces of a document
<Evolution> ah
<Evolution> good to know. thanks
<Evolution> ddfreyne: hell, if you need some press... once I'm done with this... www.centos.org will be nanoc driven...
<ddfreyne> Evolution: Nice :)
<ddfreyne> If you need assistance in finishing that up, let me know :)
<Evolution> certainly.
<ddfreyne> I haven't worked on nanoc much lately, sadly
<Evolution> that's too bad. it's a rather nice toolset
<Evolution> better than most of the other static generators I've played with
<ddfreyne> Not because I don't want to, though ;)
<Evolution> $dayjob getting in the way?
<ddfreyne> Not so much. I actually have more free time now, but I switched jobs, moved to a new city in a different country (Berlin!) and I spent a lot of time settling in
<Evolution> oh, congrats
<Evolution> one of our devs is around there.
<ddfreyne> Actually, I've been living in Berlin for exactly four months as of today
jugglinmike has joined #nanoc
tantalum has joined #nanoc
<ddfreyne> I really like Berlin. I am very happy I moved here
yogsototh1 has quit [Remote host closed the connection]
VitamineD has quit [Ping timeout: 264 seconds]
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 joined #nanoc
alerante_ has quit [Read error: Connection reset by peer]
alerante has quit [Changing host]
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
<Evolution> is there a simple way to include part of an item in another item?
<ddfreyne> Evolution: a part? which part?
<ddfreyne> Evolution: to get the content of an item, @items['/blah/'].compiled_content. That will give you the full compiled content, so possibly laid out, so without layout would require :snapshot => :pre
<Evolution> ddfreyne: Say I have a /download/ /download/cloud and a /download/spins
<Evolution> for example.
<Evolution> I'd like to have a /download/all that includes cloud, spins, and whatever else we shove under downloads.
<jachymko> <%= @items['/download/'].children.delete(@item).each do |i| %><%= i.compiled_content(:snapshot => :pre) %><% end %>
<jachymko> oops, not delete
<jachymko> select{|i| i != @item}
<jachymko> or reject
<ddfreyne> The reject is not necessary, because it will not include @item
<ddfreyne> Ahh... it might be
<jachymko> yeah, if he wants the page id to be /download/all/
Test_ has joined #nanoc
<Test_> full of people here :-)
<Test_> /quit
Test_ has quit [Client Quit]
VitamineD has joined #nanoc
<ddfreyne> o_O
vivien_ has joined #nanoc
<vivien_> hi, I'm in trouble with Nanoc
<vivien_> I use rbenv on osx in order to control my Ruby environment
<ddfreyne> You've come to the right place!
<vivien_> :)
<darix> osx. i see your problem :p
<darix> *scnr*
<vivien_> oh :D
<darix> so what's the issue?
<vivien_> I'd say it's the solution, but I'm not here for that…
<vivien_> so
<vivien_> I wanted to deploy via dandelion, but it can't work with ruby 2.0, so I installed ruby 1.9.3 via rbenv
<vivien_> reinstalling nanoc and so on, but I get this message when I do nanoc :
<vivien_> RuntimeError: Could not parse YAML for content/archives.md: argument out of range
<ddfreyne> vivien_: Can you share content/archives.md?
<vivien_> didn't find something approching in the internets
<vivien_> ok, but I have to say, compiling with ruby 2.0 environment works just fine
<darix> well so compile with 2.0 and deploy with 1.9?:p
<darix> also what error did dandelion give on 2.0?
<vivien_> well i'm tempted to do that, but changing environment each time would be a bit tiedous
<vivien_> http://pastie.org/8342501 for the .md file
<ddfreyne> vivien_: Can you put the value of created_at and modified_at in quotes?
<ddfreyne> ""
<ddfreyne> I think the multiple : on a single line can be throwing it off
<vivien_> ok I try immedialty
<darix> or just removing the " "
<darix> and put a T between date and time
<darix> would make it correct iso date time
<vivien_> oups wrong pastie for archive.md the good one is this one http://pastie.org/8342508
<ddfreyne> Ahh, the <!-- --> will probably be throwing it off.
<vivien_> same result
<ddfreyne> Comments in YAML start with #
<ddfreyne> Did you remove the entire <!-- line?
<vivien_> I try to get the dandelion error but I closed my term session before so…
<vivien_> no, but I tried before to remove all but title
<vivien_> ok compilation succeed
<vivien_> :D
<vivien_> :O
<vivien_> when I've removed the <!-- --> line
<vivien_> ok thanks for the commentstips
<vivien_> so, if it has worked correctly with Ruby 2.0 it was by chance I think
<darix> vivien_: so now back to the other ruby 2.0 error
<vivien_> So for dandelion, i had the same error message as in this issue, and I've found that dandelion use grit which isn't ready for 2.0
<vivien_> btw thx a lot for the help, it's the second time I ask something here and you answered reaaly fast :)
<vivien_> about dandelion, I have to say that even if I have installed Ruby 1.9.3, trying to deploy again I had another error :P
<darix> vivien_: just use rsync over ssh
<ddfreyne> 'nanoc deploy' ;)
<darix> ok configure nanoc to use rsync over ssh and use nanoc deploy
<vivien_> yes, but how rsync works ? doesn't it need to be installed on the server too ?
<vivien_> unfortunatly I'm on a host plan that force me to allow an ssh session from the panel :(
<vivien_> and I can't use ftp ether, I'm stuck with sftp on my actual plan
<vivien_> that's why I've tried dandelion
<vivien_> in 1.9.3 i just get this message, perhaps you have a hint ? http://pastie.org/8342533
<ddfreyne> vivien_: It is very likely that rsync is already installed
<ddfreyne> vivien_: Does dandelion have an IRC channel?
<darix> ddfreyne: cant nanoc deploy handle sftp/scp too?
<vivien_> I don't know but I'll check
<ddfreyne> darix: No, but you are free to write a Nanoc::Deployer ;)
<ddfreyne> Nanoc::Extra::Deployer actually
<darix> actually
<ddfreyne> Nice!
* ddfreyne is off to sleep
<ddfreyne> gnight!
<darix> nn dd
<vivien_> ok thanks for the help, I have to go
<vivien_> I'll try the nanoc-sftp but I'm not sure I'll be able to make it works :P
<vivien_> I'm going to see with the maintainer of dandelion to see if I can get a better result
<vivien_> thanks again and good night! :)
vivien_ has quit [Quit: vivien_]
tantalum has left #nanoc [#nanoc]
louquillio has quit [Remote host closed the connection]