n00b question re routes

19 views
Skip to first unread message

Scott O

unread,
Apr 16, 2012, 5:43:09 PM4/16/12
to nanoc
How do I set up routes so that /content/about.haml produces /output/
about.html instead of /output/about/index.html ?

justin

unread,
Apr 17, 2012, 3:48:28 AM4/17/12
to na...@googlegroups.com

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


^^ that's from the nanoc documentation here:


-- justin


On Mon, Apr 16, 2012 at 2:43 PM, Scott O <solm...@gmail.com> wrote:
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



--
http://justinhileman.com
Reply all
Reply to author
Forward
0 new messages