You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by Brian Moseley <bc...@maz.org> on 2008/01/29 23:26:42 UTC
Re: svn commit: r616540 - in /incubator/abdera/java/trunk: ./ dependencies/i18n/ dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/ jcr/src/main/java/org/apache/abdera/jcr/ jcr/src/test/java/org/apache/abdera/jcr/ server/src/main/java/
On Jan 29, 2008 2:22 PM, <da...@apache.org> 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?
Re: svn commit: r616540 - in /incubator/abdera/java/trunk: ./ dependencies/i18n/
dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/ jcr/src/main/java/org/apache/abdera/jcr/
jcr/src/test/java/org/apache/abdera/jcr/ server/src/main/java/
Posted by James M Snell <ja...@gmail.com>.
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, <da...@apache.org> 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
>