aknuds1 / staterouter.js

Simple JavaScript HTML5 routing library built on top of History.js
22 stars 2 forks source link

suggetions #3

Open devmondo opened 11 years ago

devmondo commented 11 years ago

hi, great library, may i suggest to improve it, to be similar to this http://attributerouting.net/

it is the most flexible and enjoyable routing library for asp.net mvc

hope it helps

aknuds1 commented 11 years ago

Would you mind providing some concrete suggestions as to how StateRouterJs could be improved? I'm not familiar with AttributeRouting. Besides, it's not directly comparable as it's a server-side C# library.

devmondo commented 11 years ago

hi, thanks for reply, and sorry for not being clear. i did not mean to compare it to server-side, what i meant is the syntax and features for example .route('/persons/:id', getPerson);

may be like this .route('/persons/{id}', getPerson); and may add default value to id like this .route('/persons/{id=123}', getPerson); and may make it optional by adding ? .route('/persons/{id?}', getPerson);

these are just suggestions and again excuse me if i am wrong .

aknuds1 commented 11 years ago

Will consider your suggestions.

devmondo commented 11 years ago

thank you