jacksonh / manos

Manos is an easy to use, easy to test, high performance web application framework that stays out of your way and makes your life ridiculously simple.
Other
455 stars 61 forks source link

Routing documentation wrong #96

Open toptensoftware opened 13 years ago

toptensoftware commented 13 years ago

In routing.md there are some errors that make getting started with Manos difficult.

  1. The examples for "Regular Expressions as Routes" and "Simple patterns are Routes" don't work because the attribute defaults to a match type of "Simple". So, for this to work:

    [Get ("/articles/{slug}/")]

    it should actually be:

    [Get("/articles/{slug}/", MatchType=Manos.Routing.MatchType.Simple)]

    Perhaps there should be a match type of "AutoDetect"

  2. In "Explicitly routing methods using attributes" there's an example of applying a route attribute to a ManoModule property however this attribute can't be applied to properties - only methods.