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

Parameterized URLs in hooks #108

Closed
finppp opened this issue Apr 14, 2017 · 2 comments
Closed

Parameterized URLs in hooks #108

finppp opened this issue Apr 14, 2017 · 2 comments

Comments

@finppp
Copy link
Contributor

finppp commented Apr 14, 2017

It would be great if you could use data from a parameterised URLs in hooks e.g:

  .on(
    '/club/:id',
    function (club) {
      someFunction(club.id)
    },
    {
      before: function (done,club) {
         //the below line is the bit I would like to work
        document.title = "Title | " + club.id;
        done();
      }
    }
  )
krasimir pushed a commit that referenced this issue Apr 18, 2017
@krasimir
Copy link
Owner

It's done. Added in 4.6.0. Example in the README.

@finppp
Copy link
Contributor Author

finppp commented Apr 18, 2017

Good man, thank you!

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