<bensonshaji>
i am not able to apply the filter erb to the newly created rss.erb file, adding to that when the site is compiled the it creates a new rss/index.html instead of an xml file.
<bensonshaji>
Here is my rules...
<bensonshaji>
#compile and route RSS
<bensonshaji>
compile '/sitemap.erb' do
<bensonshaji>
filter :erb
<bensonshaji>
end
<bensonshaji>
route '/sitemap.erb' do
<bensonshaji>
'/sitemap.xml'
<bensonshaji>
end
<bensonshaji>
#EOF
<bensonshaji>
#compile and route RSS
<bensonshaji>
compile '/rss.erb' do
<bensonshaji>
filter :erb
<bensonshaji>
end
<bensonshaji>
route '/rss.erb' do
<bensonshaji>
'/rss.xml'
<bensonshaji>
end
<bensonshaji>
#EOF
<ddfreyne>
bensonshaji: #compiel and #routes take identifiers, not filenames
<ddfreyne>
So that should be '/rss/' isntead of /rss.erb
<ddfreyne>
bobthecow: All widon't test cases work now, only © is translated into &<span class="caps">COPY</span>;
<ddfreyne>
So pretty nice!
<bensonshaji>
ddfreyne, Thank you... How is it an identifier? suppose if I have a file /rss/custom.erb then /rss/custom/ would become identifiers right?
<ddfreyne>
yes
<skroon_>
hi all
<skroon_>
hi Denis
skroon_ is now known as skroon
<bensonshaji>
so compilers and routes doesn't care about extensions. Thank you very much.
<skroon>
ddfreyne: have you known anyone using latest Foundation 5 with nanoc?
<ddfreyne>
skroon: No. Do you have any specific questions?
<skroon>
ddfreyne: well I just wanted to get some background info on it, because foundation can use either compass or libsass (together with grunt) whenever changes are detected, so I was wondering if this could work together with nanoc in general
<skroon>
or that it's too much of a hacky solution to get it right
<ddfreyne>
skroon: there is guard-nanoc which can be used for that purpose too
<bensonshaji>
ddfreyne, nanoc seems to care about files with same names and different extensions. For example glyphicons-halflings-regular.eot glyphicons-halflings-regular.svg glyphicons-halflings-regular.ttf etc.... Why is it so ?
<ddfreyne>
bensonshaji: The idea is that file extensions should not matter because the contents of the different files are the same
<ddfreyne>
Unfortunately, even though that argument easily applies to pages, it does not for images and fonts
<VitamineD>
in the case of fonts, one could argue those 2 files are the same item
<bensonshaji>
ddfreyne, even if we tell the compilers and routes to just to copy them, it doesnt work, untill I deleted all of them.
<VitamineD>
but there is no way to express that in compile/routing rules
bensonshaji has quit [Quit: Leaving]
<skroon>
ddfreyne: reason i'm asking, (not trying to start a flame war here btw) is that middleman has all these docs and addons to help you get started with zurb foundation
<skroon>
and we are currently using middleman, however I wold like to move back to nanoc, because of the routing
<skroon>
I kan remember I had some issues getting Compass to play nicely with nanoc in the past, do you have experience with that?
<skroon>
maybe I can help making some docs once I get it up and running, that you can use on the website?
<ddfreyne>
skroon: That would be nice. Having a guide for Bootstrap/Foundation/etc would be cool
VitamineD has quit [Quit: Leaving.]
VitamineD has joined #nanoc
<skroon>
ddfreyne: ok, I will work on that, while i'm trying to setup foundation 5 up comming hours
jutah has joined #nanoc
jugglinmike has joined #nanoc
relix has joined #nanoc
bensonshaji has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bensonshaji_ has joined #nanoc
bensonshaji has quit [Ping timeout: 240 seconds]
bensonshaji_ has left #nanoc ["Leaving"]
VitamineD has quit [Quit: Leaving.]
VitamineD has joined #nanoc
bensonshaji has joined #nanoc
bensonshaji has quit [Quit: Leaving]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skroon_ has joined #nanoc
skroon has quit [Read error: Operation timed out]
jutah has quit [Quit: Connection closed for inactivity]