hyperoslo / Compass

:earth_africa: Compass helps you setup a central navigation system for your application
http://hyper.no
Other
825 stars 47 forks source link

Possible improvement to argument routes #11

Closed zenangst closed 8 years ago

zenangst commented 8 years ago

I've been playing around with the idea to change the syntax for arguments in the routes; instead of using {}, you could use the dollar sign as a prefix delimiter to determine if it's a argument or not.

So this would mean that the route would look like; profile:$user instead of profile:{user}.

What do you think?

vadymmarkov commented 8 years ago

@zenangst Don't like $ sign, it's post-php syndrome :smile: I'm Ok with profile:{user} or profile:<user>

zenangst commented 8 years ago

@vadymmarkov :grin:

The thing is, I kinda only want one delimiter, but I guess its fine as it is :sunglasses:

zenangst commented 8 years ago

@RamonGilabert what do you think?

RamonGilabert commented 8 years ago

One of the ways in python is: % (user, age), another way (inside a string) is %(user)s %(age)d. What about:

profile: user, age, stuff.

Use the space as a separator?

vadymmarkov commented 8 years ago

@RamonGilabert :snake:

Then profile:#{user}, Ruby way.

zenangst commented 8 years ago

@RamonGilabert @vadymmarkov giphy-71

zenangst commented 8 years ago

Just gonna close this :grin: