alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 240 seconds]
alerante has joined #nanoc
louquillio_ has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 276 seconds]
relix has joined #nanoc
justicefries has left #nanoc [#nanoc]
<guardian>
morning
<guardian>
hmm tempted to give liquid a try instead of erb
<guardian>
currently I have e.g. <%= image('foo', :align => center) %>
<guardian>
not sure {% ... %} makes a difference in fact
<guardian>
any opinion?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
cDlm is now known as VitamineD
alerante has joined #nanoc
alerante has quit [Ping timeout: 252 seconds]
<guardian>
ddfreyne: I have Compass.add_project_configuration(File.join(File.dirname(__FILE__), 'compass.rb')) in _factory/Rules
<guardian>
ddfreyne: whenever I change _factory/compass.rb nanoc doesn't see the changes
<guardian>
ddfreyne: anything I can do?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Client Quit]
alerante has joined #nanoc
alerante has quit [Ping timeout: 264 seconds]
alerante has joined #nanoc
jarr0dsz has joined #nanoc
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tom[]>
guardian: a similar question constantly recurs in php. but i've yet to come across a template system for which i can say, it actually makes things easier in the big picture. there's a reduction in visual ugliness for simple stuff but, otoh, <%= ... %> or <?= ... ?> is really not intolerable
louquillio_ has quit [Remote host closed the connection]
<guardian>
tom[]: agreed, I'll stick with erb, I'm not writing an app, erb can't do much harm
<ddfreyne>
guardian: Difficult problem with _factory/compass.rb
<bobthecow>
tom[]: the point of using a templating engine with php isn't that it makes things easier, it's that it enforces a constraint.
<ddfreyne>
guardian: you could read the compass.rb file, hash it and stick it in config
<ddfreyne>
That way there'll be an implicit dependency
<ddfreyne>
(But still icky, I know)
<ddfreyne>
Maybe nanoc needs a depend_on_files() thing.
<bobthecow>
ddfreyne: you could fake "require" and use it for generating file dependencies?
<guardian>
ah guys you're awake, right now I have the following problem: in layout/default.haml I wrote "- toc = toc(@item)" and my toc(item) helper generates a toc from item.compiled_content
<guardian>
and this triggers a recursive compilation exception :/
<ddfreyne>
guardian: You should use yield instead of item.compiled_content
<ddfreyne>
guardian: a page cannot include itself because that'd be infinitely recursive
<guardian>
toc(yield) ?
<ddfreyne>
yes
<guardian>
then that assumes toc(item) becomes toc(html) right?
<ddfreyne>
guardian: Well, that'll only work in a layout, but I am assuming it is a layout
<ddfreyne>
guardian: toc(@item, html) maybe… if you need other parts of the item apart from the content