<musicmatze>
How to generate items with nanoc 4? I added my @items.create() call in the preprocess Rules block, but the items are not created. Maybe I'm doing something wrong in the generator logic... I don't know yet, I will report back asap
pkunc has joined #nanoc
pkunc has quit [Client Quit]
pkunc has joined #nanoc
warptangent has quit [Remote host closed the connection]
warptangent has joined #nanoc
<musicmatze>
nvm, found out myself.
<musicmatze>
I have another question: In a layout X, I render something with yield. I want to access variables from the content I rendered inside the yield call. They are not accessible via @item, unfortunately.
<musicmatze>
nvm, found another way
cDlm is now known as VitamineD
VitamineD has quit [Quit: mi dormas]
<musicmatze>
How can I pass options to pygementsrb in nanoc? I want to override the theme pygments shall use...
pkunc has quit [Quit: Leaving.]
<musicmatze>
well, the "other way" I found is ugly. Maybe someone can come up with a solution for the following problem... :
<musicmatze>
I have a layout which has a TOC in it. I compile my articles and apply the layout on them. Inside the articles I want to be able to specify sections and each section should, of course, appear in the TOC.
<musicmatze>
ATM I'm doing the following: I have a helper Foo::Helper.new_section "bar" which creates the <hN> tags and stores the name of the section in a @sections variable.
<musicmatze>
The layout then uses this variable to generate the TOC and the anker links
<musicmatze>
on the very beginning of each article, I have to call my Foo::Article.new! method to re-set this very array to empty state.
<musicmatze>
well, I could do that inside the layout after creating the TOC, but that wouldn't be a clean solution either, would it