Re: [nanoc] Route Item

14 views
Skip to first unread message

Michael Below

unread,
Apr 3, 2013, 1:58:58 AM4/3/13
to na...@googlegroups.com
It's a mix of general ruby functions like chop, and nanoc's own functions like identifier. Try the ruby documentation at ruby-lang.org and the nanoc api documentation.

Cheers
Michael



Tyler Craft <ty...@tylercraft.com> schrieb:
Hey, I'm a bit of a newbie, so I apologize if I missed an obvious link somewhere in the documentation. 

I'm having trouble finding something that documents all the possibilities an item within a route can be.

for example:
route '/images/*' do
  item.identifier.chop + '.' + item[:extension]
end

I can't find anything that would have let me know that an item can have an identifier and what exactly chop is (I've deduced what this is from googling, but no actual documentation on it). Or the options that are available within brackets.

Is this online somewhere? or?

Again, hope I didn't miss something so obvious.

Thanks in advance.

-tyler

Reply all
Reply to author
Forward
0 new messages