nanoc/nanoc — pull request #478 by mpapis (2014-09-09 15:17:20+00:00)
Title: add access to regular expressions group matches used in route

```bash
$ nanoc --version
nanoc 3.7.3 © 2007-2014 Denis Defreyne.
Running ruby 2.0.0 (2014-05-08) on x86_64-linux with RubyGems 2.2.2.
```
my current example:
```ruby
blog_regexp = %r
route blog_regexp do
y,m,d,slug = blog_regexp.match(item.identifier)[1..-1]
"/blog/#{y}/#{m}/#{slug}/index.html"
end
```
would be nice if t could be reduced to:
```ruby
route %r do |y, m, d, slug|
"/blog/#{y}/#{m}/#{slug}/index.html"
end
```
although adding `matches` for simplicity would be fine with me too:
```ruby
route %r do
y, m, d, slug = matches
"/blog/#{y}/#{m}/#{slug}/index.html"
end
```
I did not looked in to the code yet, wanted to make sure such change would be welcome