<GitHub75>
[nanoc-core] ddfreyne pushed 4 new commits to master: http://git.io/M0fUHA
<GitHub75>
nanoc-core/master b073e95 Denis Defreyne: Do not capture IO in tests
<GitHub75>
nanoc-core/master 48f8cca Denis Defreyne: Remove skip env var support in tests
<GitHub75>
nanoc-core/master 3fc499b Denis Defreyne: Remove commented out special error handling
<travis-ci>
[travis-ci] nanoc/nanoc-core/master 05047e8 Denis Defreyne: The build passed.
<travis-ci>
[travis-ci] nanoc/nanoc-core/master d37e9b3 Denis Defreyne: The build passed.
alerante has quit [Ping timeout: 260 seconds]
<travis-ci>
[travis-ci] nanoc/nanoc-core/master 6837eb6 Denis Defreyne: The build was fixed.
<GitHub11>
[nanoc-core] ddfreyne pushed 2 new commits to master: http://git.io/lDcEHg
<GitHub11>
nanoc-core/master 85debf3 Denis Defreyne: Remove unused capturing_stdio test helper
<GitHub11>
nanoc-core/master 69d2707 Denis Defreyne: Remove unused test helpers
<travis-ci>
[travis-ci] nanoc/nanoc-core/master 81c54bf Denis Defreyne: The build was fixed.
<travis-ci>
[travis-ci] nanoc/nanoc-core/master 69d2707 Denis Defreyne: The build passed.
<GitHub53>
[nanoc-core] ddfreyne pushed 1 new commit to master: http://git.io/uIiY6A
<GitHub53>
nanoc-core/master ca75ae4 Denis Defreyne: Move new items check into outdatedness checker
<travis-ci>
[travis-ci] nanoc/nanoc-core/master ca75ae4 Denis Defreyne: The build passed.
<GitHub129>
[nanoc-core] ddfreyne pushed 2 new commits to master: http://git.io/CHZo_w
<GitHub129>
nanoc-core/master 1280377 Denis Defreyne: Let dependency tracker handle unserialising
<GitHub129>
nanoc-core/master e92c51f Denis Defreyne: Let dependency tracker handle adding new vertices
<travis-ci>
[travis-ci] nanoc/nanoc-core/master e92c51f Denis Defreyne: The build passed.
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 248 seconds]
alerante has joined #nanoc
alerante has quit [Ping timeout: 245 seconds]
alerante has joined #nanoc
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
louquillio_ has quit [Remote host closed the connection]
guardian` has joined #nanoc
guardian has quit [*.net *.split]
guardian` is now known as guardian
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
bbs_ has joined #nanoc
<bbs_>
hello! is there a way to fetch a content item based on an identifier (like 'route <identifier>' or 'compile <identifier>' do internally?)
<bbs_>
basically i'm trying to write a multiroute method to generate compile and route reps based on yaml data in a single parent item
louquillio_ has joined #nanoc
<bbs_>
ah, i think i can do it with preprocess and @items
<bbs_>
oh, maybe not. looks like preprocess is perhaps too late to add compile and route rules?
<bbs_>
so i guess back to original query. is it possible to get content items matching an identifier regex in a way that would allow dyanmic creation of compile and route rules based on the items' data?
<VitamineD>
bbs_: you're taking the problem backwards
<VitamineD>
make a rule that matches your regex
<VitamineD>
the rule can then decide what filters to apply depending on item metadata
<VitamineD>
you can have logic in rules
<bbs_>
can i dynamically generate multiple output files that way?
<VitamineD>
multiple reps for sure
<bbs_>
and i can define multiple reps from within a signle route block?
<VitamineD>
then you can route reps with a separate rule
<VitamineD>
can't say for sure
<bbs_>
yeah that's the issue, i don't want to manually define every rep
<bbs_>
i want to be able to say... based on this array of item data, generate a separate output for each
<bbs_>
i want all that data in a single file
<bbs_>
i figure the standard nanoc way to do this is to split all the item data into separate content files, then have them applied to a common layout
<VitamineD>
yup
<bbs_>
this is very inefficient for me because my item data is coming in as json already, so i want to just keep a single unified json (or yaml) data file, and then spit out multiple outputs
<bbs_>
without having to manually split and maintain a boatload of individual files
<VitamineD>
I suppose you could have a preprocess block generating a bunch of items from that json file
<bbs_>
i tried to do that, but i can't create route or compile rules from within a preprocess block
<VitamineD>
then routing would become straightforward (depending on your identifier scheme)
<VitamineD>
is your routing that much specific to the data ?
<bbs_>
not at all, but my understanding is that ot create multiple output files i have to create spearate route blocks with unique reps
<bbs_>
oh, you're saying actually generate new item objects in the preprocess stage?
<VitamineD>
yes
<VitamineD>
that is definitely possible
<bbs_>
that's a pretty good idea
<bbs_>
i'll check that out, thanks
VitamineD has quit [Ping timeout: 265 seconds]
<bbs_>
that did the trick, thanks a lot for the help
jugglinmike has joined #nanoc
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]