route '/gallery/*/' do
# Make sure that /gallery/some_image/ is routed to
# /gallery/some_image.jpg or /gallery/some_image.png or so
item.identifier.chop + '.' + item[:extension]
end
How do I set up routes so that /content/about.haml produces /output/
about.html instead of /output/about/index.html ?
--
You received this message because you are subscribed to the nanoc discusssion group.
To post to this group, send email to na...@googlegroups.com
To unsubscribe from this group, send email to
nanoc+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nanoc?hl=en