Storing part of URL in iron router


#1

I have a posts collection with an url like http://localhost:3000/post/:id I want to store the id into a variable that can be passed around to different templates. I use iron router. How can I implement it?