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

Readme should show basic example with empty path #168

Open
martinklepsch opened this issue Jan 3, 2018 · 1 comment
Open

Readme should show basic example with empty path #168

martinklepsch opened this issue Jan 3, 2018 · 1 comment

Comments

@martinklepsch
Copy link

Currently most of the examples in the README expect something after the /. Given that matching the "empty path" is a very common scenario users will want to accomplish it could be documented more prominently. I don't have more than anecdotal data on this but I'd expect that it is also often a source of confusion.

(def my-routes ["/" {"" :index ; I'm not even sure if this is correct ;D
                     "article.html" :article}])
@SevereOverfl0w
Copy link
Contributor

fwiw, it's correct.

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

2 participants