There are two reasons:

1. I wanted to follow the Rails conventions

2. A Route is definitely different than a URI Template and I want to
   make sure it's clear which is being used.

- James

Dan Diephouse wrote:
Brian Moseley wrote:
On Jan 29, 2008 2:22 PM,  <[EMAIL PROTECTED]> wrote:

.addRoute("service", "/:base", TargetType.TYPE_SERVICE)
.addRoute("feed", "/:base/:collection", TargetType.TYPE_COLLECTION)

out of curiosity, why the ":foo" syntax? why not "{foo}" as in url
templates? or are those not acting as templates?
Simply following rails conventions. The semantics are different too I believe. James can probably give a better answer though - I don't really care either way.

- Dan

--
Dan Diephouse
MuleSource
http://mulesource.com | http://netzooid.com/blog

Reply via email to