sstephenson/ruby-ejs — pull request #9 by moll (2012-09-22 16:46:53+00:00)
Title: Use block's arg for match instead of magic $1

For some reason on my Mountain Lion stock Ruby 1.8.7p358 and Rails 3.1 setup the magic $1, $& etc. semi-global variables were consistently nil in the replace_*_tags blocks, yet the block variable was properly set.

I've replaced $1 usage with the block variable to make it work and hopefully be more robust.