Local variables from routes to partial

We are already using this pattern in some themes in production.

If it's not harming existing installations and it's useful, i'd merge this commit in master.