8000 Readme should show basic example with empty path · Issue #168 · juxt/bidi · GitHub
[go: up one dir, main page]

Skip to content

Readme should show basic example with empty path #168

Open

Description

@martinklepsch

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}])

Activity

  1. dkarvik commented on Jan 3, 2018

    @dkarvik
    Contributor

    fwiw, it's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0