Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing documentation wrong #96

Open
toptensoftware opened this issue Jun 23, 2011 · 0 comments
Open

Routing documentation wrong #96

toptensoftware opened this issue Jun 23, 2011 · 0 comments

Comments

@toptensoftware
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant