ddfreyne changed the topic of #nanoc to: 3.6.3 (apr 24th) | 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
cDlm has quit [Ping timeout: 256 seconds]
VitamineD is now known as cDlm
bghost has joined #nanoc
bghost has quit [Client Quit]
jugglinmike has quit [Quit: Leaving.]
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
bghost has joined #nanoc
bghost has quit [Quit: leaving]
bghost has joined #nanoc
number-six has quit [Ping timeout: 246 seconds]
bghost has quit [Read error: Connection reset by peer]
bghost has joined #nanoc
number-six has joined #nanoc
alerante has quit [Remote host closed the connection]
cDlm has quit [Quit: cDlm]
cDlm has joined #nanoc
cDlm has quit [Quit: cDlm]
ankakusu has joined #nanoc
<ankakusu> hi, I have pdf files under content/pdfFiles folder. I compile the following command: "compile %r{^/(pdfFiles)} do filter :erb end". I route with following command: "route %r{^/(pdfFiles)} do item.identifier.chop + "." + item[:extension] end"
<ankakusu> However, I have a problem while compiling it.
<ankakusu> The error is as follows:
<ankakusu> Nanoc::Errors::CannotUseTextualFilter: The “Nanoc::Filters::ERB” filter cannot be used to filter the “/papers/Paper 401-taxi-ridesharing/” item (rep “default”), because textual filters cannot be used on binary items.
<ankakusu> How can I solve this problem?
<ddfreyne> hi ankakusu
<ankakusu> hi
<ankakusu> if my question is unclear, I can rewrite it.
<ddfreyne> ankakusu: .pdf indicates it is a binary file, but you cannot use :erb on PDFs. If you want that, you need to add .pdf to the list of text_extensions in config.yaml/nanoc.yaml
<guardian> o/
<ankakusu> ok.
<ankakusu> but now it says: file is not valid UTF-8.
<ddfreyne> ankakusu: Why do you want to ERB-filter a PDF? That does not seem to make sense to me
<ankakusu> ok.
<ankakusu> In fact, I just want to route that item there.
yogsototh has joined #nanoc
<ddfreyne> ankakusu: Ok, I'd get rid of the :erb filter (since you're not going to need that anyway), remove pdf from text_extensions again
<ankakusu> that makes sense. Now it works. Thanks.
<ddfreyne> ok :)
yogsototh1 has joined #nanoc
yogsototh has quit [Ping timeout: 246 seconds]
yogsototh1 has quit [Ping timeout: 252 seconds]
<ddfreyne> Currently getting rid of routing rules... whee!
<ddfreyne> nanoc 4.0 will be interesting :)
number-six has quit [Ping timeout: 246 seconds]
jimjimovich has joined #nanoc
<jimjimovich> is there a way to make a template for nanoc that can be used on many sites (like as a gem or something)?
yogsototh has joined #nanoc
<guardian> ddfreyne: what's the purpose of commit de92b91e7944a70b40f947fd23f81566d91982f8 on nanoc.ws?
<guardian> ddfreyne: robots.xml????
number-six has joined #nanoc
bghost has quit [Read error: Connection reset by peer]
bghost has joined #nanoc
jimjimovich has quit [Quit: Leaving.]
yogsototh1 has joined #nanoc
yogsototh has quit [Ping timeout: 246 seconds]
<ddfreyne> guardian: Oh doh, that should be robots.txt
jugglinmike has joined #nanoc
whk has joined #nanoc
whk has left #nanoc [#nanoc]
number-six has quit [Remote host closed the connection]
number-six has joined #nanoc
cDlm has joined #nanoc
bghost has quit [Read error: Connection reset by peer]
bghost has joined #nanoc
louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
_whitelogger has joined #nanoc
yogsototh1 has quit [Remote host closed the connection]
nano- has quit [Ping timeout: 246 seconds]
jugglinmike has quit [Quit: Leaving.]
nano- has joined #nanoc
bghost has quit [Ping timeout: 264 seconds]
bghost has joined #nanoc
bghost has quit [Client Quit]
bghost has joined #nanoc
bghost has quit [Remote host closed the connection]
bghost has joined #nanoc