ddfreyne changed the topic of #nanoc to: 3.7.3 (August 31th) | 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
YannL_ has quit [Ping timeout: 260 seconds]
jugglinmike has quit [Quit: Leaving.]
terinjokes has quit [Quit: ZNC - http://znc.in]
terinjokes has joined #nanoc
terinjokes has quit [Quit: ZNC - http://znc.in]
terinjokes has joined #nanoc
alerante has quit [Remote host closed the connection]
YannL_ has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 272 seconds]
alerante has joined #nanoc
alerante has quit [Ping timeout: 246 seconds]
YannL_ has quit [K-Lined]
daf_ has joined #nanoc
<daf_> Hi guys
<daf_> I'm looking for some help with Rules
<daf_> I'd like to convert all filenames and extensions in /assets/*/ to lowercase.
<daf_> What would be the easiest way?
<daf_> .
alerante has joined #nanoc
alerante has quit [Ping timeout: 258 seconds]
<daf_> m
<ddfreyne> bobthecow: yes
<ddfreyne> daf_: In the appropriate routing rule, you can use the String#downcase method to convert a string to lowercase
<ddfreyne> bobthecow: without addressing number-six explicitly though
alerante has joined #nanoc
<daf_> Ow hey Denis
alerante has quit [Ping timeout: 250 seconds]
<daf_> ddfreyne: can I ask you another question?
daf_ has quit [Quit: Page closed]
daf_ has joined #nanoc
<ddfreyne> daf_: of course
<daf_> Well I have a nasty filter question
<daf_> Do you have some time to walk me through this?
<daf_> ddfreyne: basically I'm building an automatic thumbnailer
<daf_> The thumbnail generation is sorted as per your Thumbnailizer example.
<daf_> Now I'd like to automate the links.
<daf_> If I put in my page source ![](/assets/post/img.jpg)
<daf_> it will render as <img src="/assets/post/img.jpg">
<daf_> If possible I'd like to have it render this instead: <a href="/assets/post/img.jpg"><img src="/assets/post/img thumb.jpg"></a>
<daf_> Any ideas?
alerante has joined #nanoc
tigefa has joined #nanoc
tigefa has quit [Client Quit]
daf_ has quit [Ping timeout: 246 seconds]
daf_ has joined #nanoc
daf__ has joined #nanoc
daf_ has quit [Ping timeout: 246 seconds]
<daf__> .
cDlm___ has joined #nanoc
cDlm__ has quit [Ping timeout: 272 seconds]
<ddfreyne> daf__: You'd need to generate the thumbnail reps of your images first
<ddfreyne> That's a compile rule (with a thumbnail filter) along with a route that writes to ...-thumb.jpg
<ddfreyne> daf__: Secondly, you need to access the paths fo the normal and the thumbnail item rep, which you can do like this:
<ddfreyne> @items['/assets/post/img/'].path(rep: :default)
<ddfreyne> replace :default with :thumbnail to get the path to the thumbnail
<ddfreyne> (YOu don't really need to pass "rep: :default" because that is the default)
cDlm___ has quit [*.net *.split]
guardian has quit [*.net *.split]
ldk has quit [*.net *.split]
jaspervdj has quit [*.net *.split]
stbuehler has quit [*.net *.split]
_km has quit [*.net *.split]
jd_ has quit [*.net *.split]
_km has joined #nanoc
jaspervdj has joined #nanoc
ldk has joined #nanoc
stbuehler has joined #nanoc
cDlm___ has joined #nanoc
jd_ has joined #nanoc
guardian has joined #nanoc
ddfreyne has quit [Quit: Changing server]
ddfreyne has joined #nanoc
daf__ has quit [Ping timeout: 246 seconds]
irsol has quit [Write error: Connection reset by peer]
irsol_ has joined #nanoc
irsol_ has quit [Changing host]
irsol_ has joined #nanoc
irsol_ is now known as irsol
terinjokes has quit [Ping timeout: 246 seconds]
terinjokes has joined #nanoc